HTML

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentHTML

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 17th, 2007, 02:19 AM
bretheartbobby bretheartbobby is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 1 bretheartbobby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 54 sec
Reputation Power: 0
Changing Resolution

right now, I'm using a screen resolution of 1024x768 and I need to get it to look the same on a smaller or larger resolution as it does on mine, does anyone know a code or a script for this?

Last edited by bretheartbobby : November 17th, 2007 at 02:21 AM.

Reply With Quote
  #2  
Old April 2nd, 2008, 09:06 AM
andy009g andy009g is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 10 andy009g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 5 sec
Reputation Power: 0
Quote:
Originally Posted by bretheartbobby
right now, I'm using a screen resolution of 1024x768 and I need to get it to look the same on a smaller or larger resolution as it does on mine, does anyone know a code or a script for this?




try this one, insert it in head
Code:
<script>var width = screen.width;var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+((!(1152-width))*4)+((!(1280-width))*5)+((!(1600-width))*6)); if(!(res)) res = 1;if (res=='1') {window.location='640.mysite.com'}if (res=='2') {window.location='800.mysite.com'}if (res=='3') {window.location='1024.mysite.com'}if (res!='1' && res!='2' && res!='3') {window.location='other.mysite.com'}</script>

Reply With Quote
  #3  
Old November 7th, 2010, 10:45 AM
sYmaz sYmaz is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 11 sYmaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 9 m 54 sec
Reputation Power: 0
thanks for a script, but it works fine when I delete this line {window.location='other.mysite.com'} otherwise page not loading up,, do u know why maybe?

Reply With Quote
  #4  
Old October 12th, 2011, 07:24 PM
Acmeous Acmeous is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Location: India
Posts: 7 Acmeous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 8 sec
Reputation Power: 0
Send a message via Yahoo to Acmeous Send a message via Google Talk to Acmeous Send a message via Skype to Acmeous
I don't think you should use JavaScript for this. You must design your pages with fluid layouts which should expand or collapse upto certain screen resolutions. This gives you the flexibility to be JS independent and also work better, cause they don't much time to load for calculating screen resolutions & manipulation by JS.
Comments on this post
dishagandhi agrees!

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentHTML > Changing Resolution


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap