Results 1 to 4 of 4

Thread: go to full screen in excisting window

  1. #1
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default go to full screen in excisting window

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>MyUrl Titel</title>
    <script language="JavaScript1.2">
    <!--
    
    /*
    Screen Size Redirect script (By Robert @ http://members.tripod.com/technological_tinker/)
    Submitted to Dynamicdrive.com to feature script in archive
    For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
    */
    
    window.resizeTo(screen.availWidth,screen.availHeight);
    window.moveTo(0,0)
    
    
    if (screen.width==800||screen.height==600) //if 800x600
    window.location.replace("http://myUrl1") 
    
    
    else if (screen.width==1024||screen.height==768) //if 640x480
    window.location.replace("http://myUrl2") 
    
    else //if all else
    window.location.replace("http://myUrl3") 
    
    
    //-->
    </script>
    </head>
    
    <body>
    </body>
    </html>

    the section of the above code that is red coloured, I have placed so
    Code:
    window.location.replace("http://myUrl1")
    opens myUrl1, 2 or 3 in the same window at full screen.

    Now this works on my Mac (using Safari) nicely, but on my winPC (using IE) it does position the window at 0,0 but does not display the window at full screen.

    Has anybody got a fix or a new idea how i can achieve full screen on winPC too? Remember that I am not creating a new window, but want to remain in the excisting window.

    Eddy

  2. #2
    Join Date
    Feb 2008
    Posts
    42
    Thanks
    0
    Thanked 13 Times in 13 Posts

    Default

    I'm not having any problems using your code to make this work in ie6 on xp

  3. The Following User Says Thank You to zaphod42 For This Useful Post:

    Hilholland (10-21-2008)

  4. #3
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    hallo again zaphod42,

    is the window also opening at full screen? Even at screen resolutions higher than 1024x768? Not at my end.

  5. #4
    Join Date
    Oct 2008
    Posts
    19
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    strange
    Last edited by Hilholland; 10-21-2008 at 06:22 PM.

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
  •