www.webdeveloper.com
Results 1 to 2 of 2

Thread: If screen res 800x600 put on scrollbars?

  1. #1
    Join Date
    Sep 2005
    Posts
    1

    If screen res 800x600 put on scrollbars?

    I wanted to use the full window for my flash site, full browser flash. There's little point in me explaining in masses of detail the reasons why I have to disable the scrollbars (basically because it doesnt fill the screen enough otherwise and they scrollbars come on for no reason)

    What I want in my html page is something like "if screen res is 800x600 put on scroll="yes" if not, scroll=no. I thought this may be possible?

    I have tried this by using some if code I found, but the scroll part isnt right and it just gives errors. Anyone know the correct way or if its even possible?:


    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
    scroll="yes";
    }
    else
    {
    scroll="yes";;
    }
    //-->
    </SCRIPT>

  2. #2
    Join Date
    Aug 2005
    Location
    The Hill Ch' Hill
    Posts
    381
    A very easy way would be to use a frame page and define an attribute scrollbars=auto. e.g.

    <frameset cols="100%">
    <frame src="yourpage.html" scrollbars="auto">
    </framset>

    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !


    [Sir Arthur Conan Doyle]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles