A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: JS Full Screen

  1. #1
    Marauder-Man
    Join Date
    Dec 2000
    Location
    NJ, USA
    Posts
    349
    i would like to know the code to make your web-site full screen. plase tell me how.


    Josh

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    javascript:window.open('url','name','attributes'); void(0); in the get url.

    http://www.webmonkey.com javascript tuts will explain what you can put in the attributes section.

  3. #3
    Marauder-Man
    Join Date
    Dec 2000
    Location
    NJ, USA
    Posts
    349
    jonnie i cant find aNYTHING ON THE ATTRIBUTES.


    jOSH

  4. #4
    The following html page will open up a full screen window:

    Code:
    <html>
    <head>
    
            <title>Your title here!</title>
    
    
    <SCRIPT LANGUAGE="JavaScript" type="text/Javascript">
    
    //Script created by knoj of RightHandDesign.com
    //the above credits must be left in if you use this script!
    //thanks, Knoj.
    
    function popUpCenteredWindow() {
            var iMyWidth;
            var iMyHeight;
            //Gets user's resolution.
            iMyWidth = (window.screen.width) - 10; //The screen width(- 5 for the border).
            iMyHeight = (window.screen.height) - 10; //The screen height (- 5 for the border).
    
    //edit your.html below, to fit your needs!
            var win2 = window.open("your.html","Window2","status=0,height=" + iMyHeight + ",width=" + iMyWidth + ",resizable=no,left=0,top=0,scrollbars=no");
            win2.focus();
    }
    </SCRIPT>
    </head>
    
    <body onLoad="popUpCenteredWindow()">
    <center>
    <A HREF="javascript:void(0);" onClick="popUpCenteredWindow();">Click here</A>
    </center>
    
    
    </body>
    </html>
    However, alot of users don't like sites taking over their desktops with full screen windows, so be warned!

  5. #5
    Senior Member Knoj's Avatar
    Join Date
    Sep 2000
    Location
    Ames IA
    Posts
    361
    Cool,

    It's nice to see people are making use of that!


  6. #6
    Member
    Join Date
    Dec 2000
    Posts
    72

    new full screen

    I don't like when a website "hides" my controls. Don't know exactly what it is, just don't like it. However, If I was looking at a flash projector standalone presentation, I would almost expect it. That is what I am trying to do now. How can you tell the swf or flash projector to go full screen?

    Thanks,

    JS
    [Edited by jstrategy on 01-23-2001 at 01:10 AM]

  7. #7
    Senior Member Knoj's Avatar
    Join Date
    Sep 2000
    Location
    Ames IA
    Posts
    361
    If I understand your question...

    In your first keyframe, you would want to add an action, and select FScommand, then you will want to select fullscreen, and give it a value of true. That sould make a projector go full screen!

    If this is not what your looking for, then please email me back!

  8. #8
    Member
    Join Date
    Dec 2000
    Posts
    72

    Auto open

    Knoj,

    Its easier than I thought:

    Thanks for the info,

    JS

  9. #9
    Senior Member Knoj's Avatar
    Join Date
    Sep 2000
    Location
    Ames IA
    Posts
    361
    No problem,

    If you ever run into problems again (JavaScript) Don't hesitate to ask for help, I will be more than happy to help you out!


  10. #10
    Marauder-Man
    Join Date
    Dec 2000
    Location
    NJ, USA
    Posts
    349
    i need the FScommand for SWish?
    pleze!¿!

  11. #11
    FS commands for SWiSH is coming in v2

  12. #12
    Member
    Join Date
    Aug 2000
    Posts
    64
    Word of warning dont forget to do a close window page too Or your users will not return( this is from experiance

  13. #13
    Marauder-Man
    Join Date
    Dec 2000
    Location
    NJ, USA
    Posts
    349
    i know you can have fs in the one now. i need the one to open in full screen and to clocse!!!


    Josh

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center