UK Webmaster Talk - Online Marketing - SEO


 

Dont You Just Hate People With Different Resolutions?

This is a discussion on Dont You Just Hate People With Different Resolutions? within the Programming Articles forums, part of the Webmaster Articles/Tutorials category; Ok, so you have a website. All done up very good content; You go to your mates house who has ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Webmaster Articles > Webmaster Articles/Tutorials > Programming Articles

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 22-04-2005, 00:14   #1 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 1,088
iTrader: 0 / 0%
Departed is a name known to allDeparted is a name known to all
Default Dont You Just Hate People With Different Resolutions?

Ok, so you have a website. All done up very good content;
You go to your mates house who has a 14' Monitor and 800x600 resolution.
You show him/her your site expecting them to be like all wow.
And then; they see that they got to scroll left and right to see the page... One of the most deadly offences in web design.

Im going to teach you a unbelievbly simple but effective javascript to redirect after determining the pc screen resolution.

Firstly, put this inside your <body> tag, literally inside the tags
Code:
onload="redirectPage();"
So it looks like this but with more stuff in it;
Code:
<BODY onload="redirectPage();">
Now put this code into the head of your page.
Code:
//Change mydomain1.com to your domain/ that is compatible with the resolution concerned.
<SCRIPT LANGUAGE="JavaScript">
function redirectPage() {
var url800x600 = "http://www.yourdomain1.com/800x600isnotsupported.htm";
var url1024x768 = "http://www.yourdomain1.com";

if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;

else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;

else window.location.href= url1024x768;
}
</SCRIPT>
Now once you change the urls inside the code; Your problem is solved!

Hope this helps; if you have any probs or comments please post below.

Thanks.
__________________
-Gary
Departed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-04-2005, 07:43   #2 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,030
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Code:
var url800x600 = "http://www.yourdomain1.com/800x600isnotsupported.htm";
I guess you've no interest in designing scalable sites then or you have a very limited audience

What happens when I want to view your site on a PDA or phone ?

You should look at CSS and provide a suitable styling for different media types. If you want to do any serious paid design, then you need to incorporate flexibility and adopt standards.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
hate, people, resolutions

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Hello People YooHee New Member Introductions 2 05-09-2008 07:44
family.....dont you just love 'em?!?! Lewis General Webmaster Discussion 3 27-06-2005 21:03
Gawd We All Hate Long URL's... Departed Ads, Offers & Services 11 27-06-2005 16:17
Hey just joined and i really dont know much about this place thecsp New Member Introductions 2 15-02-2005 14:30


All times are GMT +1. The time now is 17:03.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41