iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2006, 11:56 AM
WebProWorld New Member
 
Join Date: Sep 2003
Location: Chicago
Posts: 17
mreif RepRank 0
Default Adjusting resolution to end user

Below is the script I used to adjust to different resolutions but it isn't working.

Also, Is there any way I can get it to where it will load "index.html" if 1024x768 and above and load "index2.html" if the end user's monitor is below 1024x768?

Thanks in advance!

<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
window.location="index.html";
}
else
{
window.location="index2.html";
}
//-->
</SCRIPT>
Reply With Quote
  #2 (permalink)  
Old 04-03-2006, 12:21 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

You could just make your layout liquid (width="100%") and avoid the Javascript issue completely.
Reply With Quote
  #3 (permalink)  
Old 04-03-2006, 01:53 PM
WebProWorld New Member
 
Join Date: Sep 2003
Location: Chicago
Posts: 17
mreif RepRank 0
Default

Thanks.

I tried that and it doesn't look right on some screens.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

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



All times are GMT -4. The time now is 02:53 AM.



Search Engine Optimization by vBSEO 3.3.0