PDA

View Full Version : Need a Script Written to Max Window (DDs not quite right 4 me)



Penn
08-13-2005, 02:12 PM
Good Day,

I need an Auto Window Resize/Full Screen script.

There are 2 'click' ones here at DD with Buttons:
Full Screen Window Opener Script http://dynamicdrive.com/dynamicindex8/window1.htm
Channel Mode Window Opener Script http://dynamicdrive.com/dynamicindex8/window2.htm
These work perfectly for me but I do not want buttons.

There is also this one which seems exactly what I need but it doesn't work in XP sp2 with the recent updates:
Auto Maximize Window http://dynamicdrive.com/dynamicindex8/automax.htm
(I did unlock my toolbars and there are no other scripts on the page...)

Can you give me a fix of some sort?

I looked at the Scripting How Tos and I honestly, just don't comprehend the code...
(I'm just learning DHTML, CSS, SSI and probably CSI soon too if I don't get this figured out!)

Any assistance is greatly appreciated.

Thank you,
Penn

simonf
08-15-2005, 01:38 PM
Hi

Funny it works for me
http://dynamicdrive.com/dynamicindex8/automax.htm am I'm running XP Professional service pack 2 with all the latest updates etc etc etc

shachi
08-16-2005, 02:27 AM
Penn try this:


<html>
<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.
***********************************************/
function max(){
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>
<body>
<input type="submit" onClick="max()" value="Maximize">
</body>
</html>