PDA

View Full Version : Full Screen Window Opener Script



Jamie2993
10-11-2007, 10:03 PM
1) Script Title: Full Screen Window Opener Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/window1.htm

3) Describe problem: The Code Works Perfect But When Its Opened Its NOT Properly Maximized.:eek: :confused:
How To Fix Problem?

Jamie2993
10-11-2007, 10:13 PM
Fixed BY Self BUt Thanks If You Post Answer.

Jamie2993
10-11-2007, 10:17 PM
Sorry Dont work again... please help

Jamie2993
10-11-2007, 10:25 PM
Ok i found problem you need this code:



<script language="JavaScript1.2">
<!--

/***********************************************
* Auto Maximize Window Script- Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
</code>
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

Put This IN The Head Section,:D
Original Link :http://www.dynamicdrive.com/dynamicindex8/automax.htm
Then Should Be Fixed