Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 5th Nov 2009, 07:17 PM   #1
Ken Perry
War Room Member
 
Jagged's Avatar
 
Join Date: 2008
Location: AZ
Posts: 804
Thanks: 144
Thanked 399 Times in 192 Posts
Blog Entries: 11
Default
viewing in wide screen format???
Share on: 
fb share twitter share gplus share more share

Is there some kind of script that allows your website to resize to different browsers....at different screen resolution settings?

I have an existing website for a client...with static images....that works great in IE, firefox & other browsers when you use a normal screen resolution setting, such as 800x600, 768x1024......but gets jacked up if viewed in wide screen format....

What could I do to cure this?

Thanks,
Ken
Jagged is offline  
Unread 5th Nov 2009, 07:39 PM   #2
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 77
Thanks: 13
Thanked 7 Times in 6 Posts
Default
Re: viewing in wide screen format???
Share on: 
fb share twitter share gplus share more share

I'm not sure about software but I use Check Browser Compatibility, Cross Platform Browser Test - Browsershots for Browsers and it also tells you the screen size, operating system, browser and browser version.
Gimme4Free is offline  
The Following User Says Thank You to Gimme4Free For This Useful Post:
Unread 5th Nov 2009, 09:05 PM   #3
Active Warrior
Registered Member
War Room Member
 
FrankJohnson's Avatar
 
Join Date: 2009
Location: Scotts Valley, California, USA
Posts: 91
Thanks: 2
Thanked 36 Times in 21 Posts
Default
Re: viewing in wide screen format???
Share on: 
fb share twitter share gplus share more share

Well, you could use percentages for widths.

Go to Google and search on "Fixed vs. Fluid vs. Elastic Layout: What's The Right One For You". The first link is from Smashing Magazine and is a pretty good treatment of the issues.

Hope that helps.

Frank
FrankJohnson is offline  
The Following User Says Thank You to FrankJohnson For This Useful Post:
Unread 6th Nov 2009, 11:09 AM   #4
Warrior Member
 
Join Date: 2009
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default
Re: viewing in wide screen format???
Share on: 
fb share twitter share gplus share more share

HTML Code:
<head>
<script type="text/javascript">
window.onload=function(){
    var oImg = document.getElementById("oImg");
    var iW = parseInt(screen.width);
    if(iW>1279){ // assume 1280 is max
        oImg.src="1280.jpg";
    }else if(iW>1151){
        oImg.src="1152.jpg";
    }else if(iW>1023){
        oImg.src="1024.jpg";
    }else if(iW>959){
        oImg.src="960.jpg";
    }else{
        oImg.src="800.jpg";
    }
}
</script>
</head>
<body>
<img id="oImg" src="" alt="image"/>
That should work.
Binggo is offline  
Closed Thread


Bookmarks

Tags
format, screen, viewing, wide


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:48 PM.