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 9 of 9
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    auto detech screen size?HELP?

    i might be in the wrong place,,cuz the site i know that used this, was done in ASP i think,,but i dont know anything about it...,, ook it would auto detech the screen size and then the page would be formated for best viewing.. i hope this makes sense...

    http://www.southwesternhigh.net/

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Maybe this will help, though idealy your page should be fluid and not require some javascript in order for it to work properly. The page you linked to looks fine at 800x600 res and it looks okay at 1024x768 res as well, and will probably look okay on higher resolutions as well.

  • #3
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that link is my old highschool, the guy who built that name was Justion R, great friend of myne, it was made on Frontpage, and done in only ASP .. like if you type in index.html.. theres nothing.. index.asp.. its the site


    oh man i feel so stupid, ok i went to there site.. went to index.asp.. and viewed source.. heres wht i got...

    <script language="Javascript">
    if (screen.width >= 1024) { document.write("<link rel='stylesheet' type='text/css' href='Template/CSS/1024x768.css'>") }
    if (screen.width <= 800) { document.write("<link rel='stylesheet' type='text/css' href='Template/CSS/800x600.css'>") }
    </script>
    </head> now thats all i should need right... and i should only have to changed the CSS to html.. cuz i dont no asp or css.. just tiny amounts of java, HTML, and flash (and its script) does vb and c++ help me any

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yeah just change the link to the stylesheet but note some users disabled JS, like myself and your site won't render properly.

  • #5
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then what would be a good option other then this

    Click to enter
    800*600 or 1024*768

    the sizes are the click to enter link..and most ppl dont even know wht theres is... id like my site to be done in a size between those to... and dont want the ppl to have to scroll to the side just to view it, nor would i want it to take up the full screen if there using 800*600 (how many still use that i wonder)

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    A fixed layout of 780px wide still looks okay on a 1024x768 resolution. Just make your site fluid, allow it to expand with the users resolution. Don't rely on javascript to redirect users to a site, you are just creating more work for yourself. Like I said JS can be disabled.

  • #7
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what do u mean make it fluid

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Use percents for widths rather than pixels.

  • #9
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sample plz.. iv given up html long ago, and just relayed on Frontpage to do the job


  •  

    Posting Permissions

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