SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Function modified to fullscreen

    I am using this code I got from a friend of mine but I wish to chnage the dimensions of the page to Fullscreen. Could anyone help me please?

    Code:
    <script>
    var win = null;
    function popup(mypage)
    {
    w=800
    h=800
    mypage="images/screenshots/"+mypage+".swf"
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    
    settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes'
    win = window.open(mypage,"popup",settings)
    }
    </script>
    Gabs

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You cannot call the browser's full screen mode with javascript.

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure?

    http://javascript.internet.com/navig...ll-screen.html

    It's just that I don't know the script very well so not sure how to modify the script that I've been given.

  4. #4
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excuse me.

  5. #5
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Full screen is no longer allowed on new installations of all major browsers even IE7 disallows it.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



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
  •