Results 1 to 3 of 3

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

  1. #1
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need a Script Written to Max Window (DDs not quite right 4 me)

    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

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Question

    Hi

    Funny it works for me am I'm running XP Professional service pack 2 with all the latest updates etc etc etc
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  3. #3
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Penn try this:
    HTML Code:
    <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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •