-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Al Franz wrote:
| Can you put commands in an HTML page so that when it opens it will be
in the
| center of the screen, and possibly even turn off some of the menu bars?
| Want to create an [autorun] file on a CD I am publishing and would like to
| have it start up in the center of the screen with the index.htm file
on the
| CD.
|
|
With javascript
:
| [...]
| <head>
|
| <script language="javas cript">
|
| function winOpen(theURL, Name, popW, popH, scroll) {
| var winleft = (screen.width - popW) / 2;
| var winUp = (screen.height - popH) / 2;
| winProp =
'width='+popW+' ,height='+popH+ ',left='+winlef t+',top='+winUp +',scrollbars=' +scroll+',resiz able'
| Win = window.open(the URL, Name, winProp)
| if (parseInt(navig ator.appVersion ) >= 4) { Win.window.focu s(); }
| }
|
| </script>
|
| </head>
|
| <body onload="winOpen (
| 'http://www.yoursite.co m',
| 'name','width', 'height','scrol l yes/no'
| )">
| [...]
- --
Martin Trenker -||- Webauthor and Human!
da****@teh.mooo .com -||-
http://www.clanwork.net
PGP: 0xCC93857F -||-
http://www.daroot.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQE/03KFdSofxcyThX8 RAqsUAKCpKPXs1j IUKxgOOxQQPJfsO hk8pQCcDFw7
j286KG5E7vryzJP TWIn62Gg=
=h5WY
-----END PGP SIGNATURE-----