Close

Results 1 to 3 of 3
  1. #1
    DF Rookie Jaabbaa's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    13
    Thanks
    0
    Thanked:        0
    Karma Level
    0

    Default Different resolutions

    Hi Guys

    OK, re-did my site, designed at 800x600 with a static backround & scrolling text. Problem is doesn't look how I want it to at higher resolutions .

    Can I get it to automatically adjust & stretch the backround to fit the screen according to to the person viewing ?

    Input appreciated as always

    Regards

    Jab
    Last edited by Jaabbaa; 14th September 2004 at 09:08 PM.

  2. #2
    DF VIP Member Novecento's Avatar
    Join Date
    May 2002
    Location
    Universe / milky way / earth
    Posts
    319
    Thanks
    0
    Thanked:        0
    Karma Level
    285

    Default Re: Different resolutions

    you could try the following:
    (put it into the head section of your index.html)

    Code:
        <script language="Javascript"><!--
        
        if (screen.width <= 800) {
        document.location = "x.html";
        }
        
        if (screen.width > 800) {
        document.location = "y.html";
        }
        
        //-->
        </script>
    where x.html is the site you designed in 800*600 and y.html would be the site for higher resolutions. just assign a bigger value to your background img's width attribute in y.html...

  3. #3
    DF Rookie Jaabbaa's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    13
    Thanks
    0
    Thanked:        0
    Karma Level
    0

    Default Re: Different resolutions

    Thanks mate, will give it a try.

    jab

Similar Threads

  1. New Years Resolutions people
    By super mike in forum Health & Fitness
    Replies: 2
    Last Post: 6th January 2006, 02:49 AM
  2. New Years Resolutions...
    By /dev/null in forum The Dog and Duck
    Replies: 15
    Last Post: 30th December 2004, 12:03 PM
  3. New Years Resolutions!
    By Tammer in forum The Dog and Duck
    Replies: 22
    Last Post: 2nd January 2004, 02:30 PM
  4. Israel leads in ignoring UN Security Council resolutions
    By eurostyle in forum The Dog and Duck
    Replies: 15
    Last Post: 16th October 2002, 04:50 AM
  5. Replies: 12
    Last Post: 17th September 2002, 04:28 AM

Social Networking Bookmarks

Posting Permissions

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