
April 2nd, 2008, 08:06 AM
|
|
Registered User
|
|
Join Date: Mar 2008
Posts: 10
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>
|