Results 1 to 10 of 10
  1. #1
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Wellington, New Zealand
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making IE 5 run in Fullscreen with script?

    Hi All

    This question is a two part question.

    1. Using script how can I force an HTML page open in IE 5 into a full screen mode like pressing 'F11' causes? At present I am using javascript, and using the open method of the window object and setting the 'fullscreen = yes' property. The problem with this is that the little navigation bar at the top doesn't appear? Help?

    2. By using the java script:

    <font color=6495ed><font face="Georgia">window.open("main.html", 'main', 'location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=yes, fullscreen = yes');</font face=georgia></font color=6495ed>

    I open a new window. Is it possible to just adjust the properties of the currently open window without having to open a new one? Can this be done with the answer to (1) above?

    Your help in this matter would be great! Thanks

  2. #2
    New Lounger
    Join Date
    May 2001
    Location
    New York City, NY
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    The second question is easy. As a developer, I work in 1024*860, but resize my current window periodically to see how an 800*600 user would see it. I have this as a shortcut on my IE links bar:

    java script:resizeTo(800,580)

    I'll think about the first question.

    Hope this helps,

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Full-screen script here at <A target="_blank" HREF=http://javascript.internet.com/navigation/full-screen.html>The JavaScript Source</A>

  4. #4
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Wellington, New Zealand
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Thanks for your replies.

    The solutions that you have given are exactly what I am at present doing. When you use the 'fullscreen=yes' property, the IE window does open in fullscreen - but there is not toolbar at the top.

    Can I get the toolbar while in fullscreen mode?

    jayden

  5. #5
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    I think the definition of full-screen means you get no toolbars.

    Does this snippet from <A target="_blank" HREF=http://www.js-examples.com>http://www.js-examples.com</A> help?<pre>full screen

    <script>
    function doIt()
    {
    var y=window.screen.height;
    var x=window.screen.width;
    window.moveTo(0,0);
    window.resizeTo(x,y);
    }
    </script></pre>


  6. #6
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Wellington, New Zealand
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Hi Lief,

    Yes that is a better solution. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    When I refer to fullscreen mode with the toolbar, I'm referring to emulating what happens to the screen when you press F11 in IE (or select from the menu bar view, fullscreen).

    Ideally this is what I want to do.

  7. #7
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Point of interest, I do NOT return to any web address that mucks with resizing of my browser. To many webmasters are forcing their methods on the users. If you want happy users do not make any changes that affect the user. This is in the same class as "Pop ups and unders".
    Just my <img src=/S/2cents.gif border=0 alt=2cents width=15 height=15>

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  8. #8
    2 Star Lounger
    Join Date
    Apr 2001
    Location
    Wellington, New Zealand
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Hi I completely agree under normal circumstances

    However, this is for 'complete novices' who would otherwise not know how to re-size their browsers - with an 'application' that requires a specific screen area to display optimally.

    Thanks for you comments though

  9. #9
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Point taken, thanks for listening.

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  10. #10
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Edinburgh, Midlothian, Scotland
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making IE 5 run in Fullscreen with script?

    Hi - just browsing by...

    I don't know whether this will work in script within HTML, but it does work from Powerpoint VBA (OLE) - i.e. you may need to experiment a bit?

    Below is a macro extracted from a PowerPoint presentation I did a couple of months ago. Basically the macro declares the "InternetExplorer" object (which controls a remote instance of the Internet Explorer application through OLE Automation), then switches IE into "TheatreMode" and finally navigates to a web page.

    **********************
    Sub Web_Slide()

    Dim IE As Object ' Declare Variable ("IE") to hold the reference.

    Set IE = CreateObject("InternetExplorer.Application") 'Set the InternetExplorer Object

    IE.TheaterMode = True ' Switch Internet Explorer to F11 mode

    IE.Navigate ("http://www.microsoft.com") ' Navigate to a web page

    IE.Visible = True ' Set Browser to be Visible.

    Set IE = Nothing ' Release the Object Variable Reference

    End Sub
    ******************

    There are numerous events and methods associated with InternetExplorer object, here's a few I've used...

    IE.FullScreen = True ' true fullscreen mode, with no menu bars, buttons, or toolbars.
    IE.Top = x ' set top left corner of window x number of pixels from top of screen.
    IE.Left = x ' as above, but from left of screen!
    IE.MenuBar = False ' Hide menu bar.
    IE.ToolBar = False ' Hide toolbar.
    IE.Height = 768 'Specify window height in pixels.
    IE.Width = 1024 'Specify window width in pixels.

    If you want the full list, drop me post via the lounge and I'll e-mail you the necessary helpfile.

    Hope this helps?

    Cheers,

    Ade

Posting Permissions

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