[thelist] Centering in IE6?

lon.kraemer lwkraemer at directvinternet.com
Tue Mar 19 11:43:00 CST 2002


This type of thing has really become a source of frustration for me lately.
I'm using a dual monitor setup and this places the window in the 'center' of
my 2048 X 768 screen (ie. split between monitors). I always have to manually
reposition, ughhh!

Another thing to consider for X-browser, X-OS, X-hardware coding?

[This extends to applications (like homesite) that insist on placing dialogs
in the center. I'm constantly repositioning things.]

Perhaps I'm missing something with the setup (Matrox G450, Win2Kpro)? If
anyone else with this setup has found a solution to this conundrum, please
email me offlist.

--
Lon Kraemer
-----------------------------------------
- t r a n s m i s s i o n   c o m p l e t e -



> I have some Javascript that i found which works nicely - how you cold
> implement into a div I'll leave to you:
>
> <script language="JavaScript">
> <!--
>
> function launch(url,wid,hei)
> {
>   features = 'fullscreen,width=' + wid + ',height=' + hei;
>   win = window.open(url, 'CM', features);
>   if(win.resizeTo) win.resizeTo(wid, hei);
>   if(win.moveTo)
>   {
>     leftPos = (screen.width - wid) / 2;
>     topPos = (screen.height - hei) / 2;
>
>
>     win.moveTo(leftPos, topPos);
>   }
>   if(win.focus) win.focus();
> }
> //-->
> </script>
> <body onload="launch('TimeSheet.asp', '360', '160'); return false">





More information about the thelist mailing list