Auto resize windows

Discussion in 'Programming' started by chewie49, Nov 1, 2007.

  1. #1
    Hello!

    I am making a website with a big background image and I REALLY need the image be on the full window.

    I don't know how to make that when someone with a 800x600 screen enters in the website, see the image at full window, but at the same time when someone with a 1024x768 screen enters in the website, sees it also in full window.

    How do I do that?

    Kindest Regards,

    Chewie.
     
    chewie49, Nov 1, 2007 IP
  2. dEmOn1337

    dEmOn1337 Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, first thing is, you cannot control the resolution of the monitor of anyone.. :)


    The best option you can do is to resize the Image,.. Although, many Users nowadays have resolutions of 1024x768 and above.. :)
     
    dEmOn1337, Nov 2, 2007 IP
  3. chewie49

    chewie49 Well-Known Member

    Messages:
    305
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Thanks demon.

    I have seen in some websites, a Javascript code that if you have 800x600, opens in that resolution, you don't miss any part of the image and you don't have to scroll, and if you have 1024x768, it is exactly the same thing.
     
    chewie49, Nov 2, 2007 IP
  4. Oli3L

    Oli3L Active Member

    Messages:
    207
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    70
    #4
    You can do it that way: (I'm not sure about the window.open)
    
    <script type="text/javascript">
    if(window.screen.height == "600" && window.screen.width=="800")
    {
    	window.open("url","name","width:;height:;");
    }
    </script>
    
    HTML:
     
    Oli3L, Nov 2, 2007 IP