[Question] Coding my own website! menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Zeroi9's Avatar Banned
    Reputation
    286
    Join Date
    Aug 2008
    Posts
    911
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Coding my own website!

    Hello! I've been worknig on my own website for a while, but I need to know how I should do so it automaticlly matches the visitors screen resolution. Since im on my LapTop atm, and when I open the .HTML Files to check how it looks I see only like my website, but I can scroll on the width <------> and when I try it on my friends computer I can scroll longer to the right or shorter.
    And I want it to like automaticlly find the screen resolution.

    Will +Rep x2 if someone helps me!!

    [Question] Coding my own website!
  2. #2
    CarlosJ's Avatar Member
    Reputation
    143
    Join Date
    Sep 2007
    Posts
    656
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats not possible to do. the only thing you could do is use javascript to detect the users screen resolution and then manually get them to pick to pick the new page. that means you will have to create multiple resolutions of youre website though.
    Code:
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
     window.location="highres.html";
    }
    else
    {
      window.location="lowres.html";
    }
    //-->
    </SCRIPT>
    will be what you want to use. check out: javascript: Screen Resolution Detection for the code source.


    Love isn't an emotion or an instinct - it is an Art

  3. #3
    Zeroi9's Avatar Banned
    Reputation
    286
    Join Date
    Aug 2008
    Posts
    911
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CarlosJ View Post
    thats not possible to do. the only thing you could do is use javascript to detect the users screen resolution and then manually get them to pick to pick the new page. that means you will have to create multiple resolutions of youre website though.
    Code:
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
     window.location="highres.html";
    }
    else
    {
      window.location="lowres.html";
    }
    //-->
    </SCRIPT>
    will be what you want to use. check out: javascript: Screen Resolution Detection for the code source.

    Thx. +Rep x2

Similar Threads

  1. Website question; Code box.
    By Eski in forum World of Warcraft General
    Replies: 4
    Last Post: 01-10-2008, 03:36 AM
  2. How to host your own website on your own computer (VIDEO) NOOB FRIENDLY
    By Blindgunner in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 01-08-2008, 08:38 PM
  3. you own website
    By L'Lawliet in forum Suggestions
    Replies: 7
    Last Post: 10-24-2007, 11:31 PM
  4. [Question] Make your own mount
    By DarkFever in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 10-13-2007, 05:26 PM
  5. [Question] Making your own models. (Animation & Texturing)
    By aeonicx in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-08-2007, 07:17 PM
All times are GMT -5. The time now is 08:54 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search