Allaire Cold Fusion Template Header Size: New VersionõO2¸~õìêÚ[�²zhqؤä8X°É¿Ìò©‰P^qv ßNÊÒ‡ùFÍû'ÉÊE´Žå¿ˆpc –¨u÷TéÒ•5˜¥ãxV’ôû”\v‰ù>eÐ×åRVŸ,ÛÚ÷î,™î(àñvЈN¯õáÜøç,Zê¤/„(|0}ã#ãJéî¥�UøÛ[Ô¢„+Ùyœ(·85ìhÿ—D¾!Èž›|S™ï¸]J € U[]†VŸ,ÛÚ÷– sizebrowser
gotFusion.com....... Where your adventure begins
Showcase your website at Fusion GalleriesNetObjects Fusion 7 Websites Portal

 


 


A frequently asked question is: "How can I size the browser window to 800 x 600 when users visit my site?" - like in this demo or this.

To autosize the window, put this code in the Head of the page you want to size:

<script language="JavaScript">

var myW = 800;
var myH = 600;

Xpos = (screen.width) ? (screen.width-myW)/2 : 0;
Ypos = (screen.height) ? (screen.height-myH)/2 : 0;

self.resizeTo(myW,myH);
self.moveTo(Xpos,Ypos);

</script>

Change the dimensions (myW and myH) to suit yourself.

Warning
This might annoy some people. It could be a good idea to give them the choice to size their browser or not. You may want to add a link to allow them to do so. To do this, you'd turn the above script into a function and call it with a link.

To make your window user sizeable, put this in the Head:

<script language="JavaScript">

function sizeWindow() {

var myW = 800;
var myH = 600;

Xpos = (screen.width) ? (screen.width-myW)/2 : 0;
Ypos = (screen.height) ? (screen.height-myH)/2 : 0;

self.resizeTo(myW,myH);
self.moveTo(Xpos,Ypos);

}

</script>

Then call it with a Javascript link:

See demo.

That's it.

Return to the TOP of this page


|  Fusion  |  Web Design  |  Hosting  |  Resources  |  gotFusion Store  | 

Problems with this page?  

All content copyright © 2002 gotFusion LLC.  The name gotFusion and the gotFusion ® logo are registered trademarks of gotFusion LLC
Copyright, legal notice & privacy statement