|
| |
|
|
Oznob
Posts: 87 From: Toronto, Ontario, Canada Status: offline
|
Javascript - 3/22/2001 15:24:00
How should the following appear if I want to set the window size to 100% width and height? ----------------------- <head> <script LANGUAGE="JavaScript"> function ShowWindow() { window.open('http://www.mydomain.com/', '', 'scrollbars=yes,toolbar=no,directories=no,menubar=no,status=no,menubar=no,height=480,width=640'); } </script> </head> ------------------------ I tried width=100% and it doesnt work - anyone know the correct syntax? p.s. I dont want fullscreen=yes -- that seems to remove all the menus etc.Thanks in Advance, Oznob
|
|
|
|
Dixiedi
Posts: 130 From: Cincinnati Status: offline
|
RE: Javascript - 3/22/2001 16:25:00
It has to be set to pixel size. If you want full window sizing, go with 800width and600 height, that will accomodate most visitors.I might be totally wrong on this, so excuse me if I am, but if you are looking to make some type of advertising pop up that covers the entire monitor screen, think twice before you do it. People absolutely hate that. AND statistics tell us it takes at least 4 ro 6 visits before someone will make a purchace from your site. Ticking them off on the first visit makes it really hard to get to that 4th one, let alone the 6th. I know a lot of sites use this method, but they are not appreciated. Do you want to be one of them?
|
|
|
|
markniebergall
Posts: 1 From: None Status: offline
|
RE: Javascript - 3/22/2001 17:20:00
The following javascript came from a tutorial offered on one of the javascript websites. I have used it successfully. It needs to be added to the head of the new document(window) however, not the opener. <script language="javascript"> function maximizeWin() { if (window.screen) { var aw = screen.availWidth; var ah = screen.availHeight; window.moveTo(0, 0); window.resizeTo(aw, ah); } } </script>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|