Skip to main content
Known Participant
November 24, 2008
Question

Full Screen

  • November 24, 2008
  • 3 replies
  • 878 views
I created a movie with dimension 1016 * 715 & linked to a button so that, On click of that button will open the movie. When I clicked that button, movie opened in IE browser in normal view.

My requirement is movie sould open in IE browser that too in Full Screen view. This should happen without pressing F11.

Is it Possible?
    This topic has been closed for replies.

    3 replies

    December 13, 2010

    Hi there - first post here, so forgive any broken forum rules.

    I'm hoping to try to answer this and maybe seek some help myself.

    I wanted my project to open full screen in my LMS, so it was being published in SCORM.

    In Captivate 5, on the first slide, under the Action section, I added an On Enter: Execute Advanced Functions, and created a function called "Fullscreen".

    The Fullscreen executes a Javascript on the Current window which holds this script:

    top.window.moveTo(0,0);
    if (document.all)
    {top.window.resizeTo(screen.availWidth,screen.availHeight);}

    This is an extract from a piece of Javascript I found on the net which had:

    <script language="JavaScript1.2"> 
    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 = top.screen.availHeight; 
           top.window.outerWidth = top.screen.availWidth; } 
       } 
    </script>

    Though the dialogue box didn't seem to accept this full script and my knowledge of Javascript is VERY limited, so I'm not sure if it wasn't accepted because of spaces or tags or what.


    My bit of code worked satisfactorily but only produces the work in the screen resolution specified in your output.


    To get real jazzy, I saw a clever piece in another Captivate forum (from teaktoc) which said:

    If you open the HTM page for your project, find the line (about 250, pending output options) :  
            var so = new SWFObject(strURLFile + strURLParams, "Captivate", "1280", "768", "10", "#CCCCCC");

    For Internet Explorer, change the numeric values in quotes to 100% for each of the first two.  (The values will reflect your project size when published by Captivate.)

    The new line will resemble:

       var so = new SWFObject(strURLFile + strURLParams, "Captivate",  "100%", "100%", "10", "#CCCCCC");

    This is really cool, as it retains the size quality.

    Now if anyone knows how to incorporate that into this and have it accepted in the Javascript function, that would be GOLD!

    Many thanks
    Known Participant
    November 25, 2008
    Can you please guide where this script should be placed. Instead of
    <body>
    <a href="javascript:void(0);" onClick="fullScreen('samplefs.htm');">Click here to Open sample in Full Screen Window</a>
    </body>

    or in some other place
    Known Participant
    November 26, 2008
    Hi Cybersha,

    Yep - placed just as you said.

    Cheers

    Known Participant
    November 24, 2008
    Hi Cybersha,

    Are you saying you want to launch the Captivate in Full Screen mode without the extra click (from publishing to full screen) and without using F11?

    Use JavaScript on the link for launch your Captivate:

    <a href="#" onClick="window.open(' http://YOUR_URL.htm','_blank','fullscreen =yes')" alt="YOUR_ALT_TEXT" />

    Hope that helps