HighDots Forums  

new window size

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss new window size in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sanjG
 
Posts: n/a

Default new window size - 05-21-2004 , 07:17 AM






Hi, is there anyway of opening an HTML page in internet explorer which would
fill up the screen to the users set resolution??

for example, my screen res is 1024x768 and when i open my html file, internet
explorer will open the page and read some code that will tell it to open the
page and resize it to 1024x768

regrads

sanjay


Reply With Quote
  #2  
Old   
Mark
 
Posts: n/a

Default Re: new window size - 05-21-2004 , 08:22 AM






sanjG wrote:

Quote:
Hi, is there anyway of opening an HTML page in internet explorer which would
fill up the screen to the users set resolution??

for example, my screen res is 1024x768 and when i open my html file, internet
explorer will open the page and read some code that will tell it to open the
page and resize it to 1024x768

regrads

sanjay



I found this code:

<script language="JavaScript">
window.onload = maxWindow;

function maxWindow()
{
window.moveTo(0,0);


if (document.all)
{
top.window.resizeTo(screen.availWidth,screen.avail Height);
}

else if (document.layers||document.getElementById)
{
if
(top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}

</script>



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.