Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12

Thread: full screen

  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    full screen

    I want my index page which is the first page to be displayed in full screen , also I want all other pages to be displayed in full screen, I used the following script, but it didn't work??:

    function fullScreen()
    {
    window.moveTo(0,0)
    window.resizeTo(screen.width,screen.height)
    }


    <body onload="fullScreen()">

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How isn't it working? Works on my computer.. (like it expands the window no matter the size).

    Only thing is that it extends the window behind the start bar (I'm using IE on Windows), so that's not too cool, because I can't see the status bar..

    Sadiq.

  • #3
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you mean this:

    window.open ("http://yahoo.com", "","fullscreen=yes")

    but I only think

    have fun

  • #4
    New Coder
    Join Date
    Apr 2004
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I used the following code in the page index.html

    window.open ("index.html", "","fullscreen=yes");

    but I get an infinte loop.

    so, then I tried another thing I created a new page start.htm and used the code above to redirect me to index.html but the problem that I used a peace of code that must close the window but what happen is that when closing the window the page start.htm sill remaning??

  • #5
    New Coder
    Join Date
    Jul 2003
    Location
    Houston, Texas
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You may want to try this. It works in IE6 that I know of
    Code:
    <html>
    <head><title>Index</title>
    
    <script language="javascript">
      function openSite(){
      var wide=screen.width;
      var high=screen.height;
    	var where_to='ps_page_one_1024.php';
      var mainwin = window.open(where_to,"mainwin", "fullscreen");
      window.opener='England_swings';
      window.close();
      }
    </script>
    
    </head>
    
    <body onload="openSite()">
    
    </body>
    </html>
    Beyond a critical point within a finite space, freedom diminishes as numbers increase. ...The human question is not how many can possibly survive within the system, but what kind of existence is possible for those who do survive."

  • #6
    New Coder
    Join Date
    May 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer

    You might need to have the index page pop up of a ontro page then have the intro page close, but the using might get a box asking if they want to close the ino page.

  • #7
    New Coder
    Join Date
    Jul 2003
    Location
    Houston, Texas
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have used this one a lot of times and the IE close dialogue box does not appear in this example. the window just quietly coses with no questions asked.
    Beyond a critical point within a finite space, freedom diminishes as numbers increase. ...The human question is not how many can possibly survive within the system, but what kind of existence is possible for those who do survive."

  • #8
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Quote Originally Posted by Harry
    I have used this one a lot of times and the IE close dialogue box does not appear in this example. the window just quietly coses with no questions asked.
    FYI, that is an exploit of the bug. Majority of the browsers have it. Therefore, it's not always reliable since that will (or might) be fixed in future versions.

  • #9
    New Coder
    Join Date
    Apr 2004
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thankyou all...
    I solved my problem...

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    FYI, that is an exploit of the bug. Majority of the browsers have it. Therefore, it's not always reliable since that will (or might) be fixed in future versions.
    More specifically, assuming this isn't used on the internet where such tricks will help ensure your pages have very low hit counts because your site disgusts your potential audience. You've got your users all nicely expecting this to happen when they visit your site and then the users upgrade to a new browser and start getting prompts about closing a window that they never used to get and suddenly you've got a rash of complaints because your site's behaviour has changed.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #11
    New Coder
    Join Date
    May 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you do make your index page full screen, make sure that you have several ways for your user to close it. Not everyone knows that alt+f4 closes the browser.

  • #12
    Regular Coder
    Join Date
    Oct 2003
    Location
    SC
    Posts
    936
    Thanks
    0
    Thanked 0 Times in 0 Posts
    good point dude


  •  

    Posting Permissions

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