Make different pages for different resolutions possible?

Discussion in 'HTML & Website Design' started by daverosen, Jan 24, 2011.

  1. #1
    Can I make different pages for different resolutions?
    So if someone has a 1440x900 res, it will redirect to the 1440x900 html page.
    And if someone has a 1600x1050 res, it will redirect to the 1600x1050 html page.
     
    daverosen, Jan 24, 2011 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Possible. Why not a fluid layout...
     
    radiant_luv, Jan 24, 2011 IP
  3. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #3
    As mentioned above don't create pages based on resolution. Use a fluid layout to cover what you can.

    For example I develop liquid layouts with a min and max width on the container. That way they resize nicely without looking out of proportion on different screens.
     
    AtSeaDesign, Jan 24, 2011 IP
  4. daverosen

    daverosen Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What I'm doing is putting a SWF movie player on a background of a drive up cinema. With a 1440x900 resolution, the SWF movie player fits in the spot I want it to go on the background, but any other resolution looks bad.
     
    daverosen, Jan 24, 2011 IP
  5. pcfactor

    pcfactor Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It can definitely be done, in fact it used to be the standard about fifteen years ago, taking the browser being used and the resolution being used and displaying a page to accommodate accordingly. But as been mentioned that is over kill and causes you to have to work 3 or 4 times harder when you can do the same thing without the need of programming and excess overhead by using CSS and a liquid layout. Unless there is a direct need it is usually not a good idea to have to do the same thing more than once, i.e. multiple pages for multiple resolutions. To answer your question specifically though you may find your answer here http://www.javascriptkit.com/howto/newtech3.shtml

    Hope this helps
     
    pcfactor, Jan 24, 2011 IP
  6. daverosen

    daverosen Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Perfect!

    But, I tried putting in the below code and it was unsuccessful.

    <script type="text/javascript">
    
    if (screen.width<=1440) //if screen is 8 bit or less
     document.body.style.background:#000000 url(images/splash-bg-test.jpg) no-repeat fixed center; //simple lime background for 8 bit screens
    else
     document.body.style.background="#E7F8ED" //fancy green background for modern screens.
    
    </script>
    Code (markup):
     
    daverosen, Jan 24, 2011 IP
  7. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #7
    there should be ways to redirect people based on their browsers and res. but as some mentioned above, its pointless, just create a page based on 800x res or simply base your site cells on % and not a set value W x H
     
    submitmaster, Jan 24, 2011 IP
  8. ukescuba

    ukescuba Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    check out activeden.net or codecanyon.net they have a lot of scripts that will make your swf run full size in the background might cost you about $2 or $3 - that way you wont have to worry about the persons screen size

    hth
     
    ukescuba, Jan 25, 2011 IP
  9. Falrish

    Falrish Greenhorn

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #9
    It is fully possible, though it is better to just use a fluid layout as was stated already. If you make a specific layout for each possible resolution then you will be in trouble with loading as there will be far too much information to process. Just use a dynamic/fluid layout and you will be good.
     
    Falrish, Jan 25, 2011 IP
  10. daverosen

    daverosen Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The layout we made is meant to be a full size background of a drive in cinema, and have a swf player on the screen that's in the background.
     
    daverosen, Jan 25, 2011 IP
  11. ukescuba

    ukescuba Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ukescuba, Jan 25, 2011 IP
  12. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #12
    CSM, Jan 25, 2011 IP
  13. daverosen

    daverosen Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I put the below code in my HTML file, and it's not working on the 1280 screen I'm on atm.


    <style>
    @media screen and (device-width: 1024px) { background:#000000 url(images/splash-bg-test-1024.jpg) no-repeat fixed center; }
    @media screen and (device-width: 1280px) { background:#000000 url(images/splash-bg-test-1280.jpg) no-repeat fixed center; }
    @media screen and (device-width: 1440px) { background:#000000 url(images/splash-bg-test-1440.jpg) no-repeat fixed center; }
    @media screen and (device-width: 1680px) { background:#000000 url(images/splash-bg-test-1680.jpg) no-repeat fixed center; }
    @media screen and (device-width: 1920px) { background:#000000 url(images/splash-bg-test-1920.jpg) no-repeat fixed center; }
    </style>
    Code (markup):
     
    Last edited: Jan 25, 2011
    daverosen, Jan 25, 2011 IP
  14. AtSeaDesign

    AtSeaDesign Active Member

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    93
    #14
    Dave, does this come out green background all the time?


    
    <script type="text/javascript">
    
    if (screen.width<=1440) //if screen is 8 bit or less
     document.body.style.background:#000000 url(images/splash-bg-test.jpg) no-repeat fixed center; //simple lime background for 8 bit screens
    else
     document.body.style.background="#E7F8ED" //fancy green background for modern screens.
    </script>
    
    Code (markup):
    The first item can't have a : it needs =
    
    document.body.style.background="background-image: url('image/arrow_sel.gif') no-repeat";
    
    Code (markup):
     
    AtSeaDesign, Jan 27, 2011 IP