Strigge Posted December 3, 1999 Share Posted December 3, 1999 Jag har tre olika sidor för olika upplösningar. Jag vill att man ska starta på sidan med upplösningen 1024x768 och sedan slussas vidare om man har en annan upplösning. Är det någon som har ett script som funkar? Link to comment Share on other sites More sharing options...
peter gustafsson Posted December 5, 1999 Share Posted December 5, 1999 Prova med: ---------------------------------------------<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='http://www.yahoo.com'}if (res=='2') {window.location='http://www.yahoo.com'}if (res=='3') {window.location='http://www.yahoo.com'}if (res!='1' && res!='2' && res!='3') {window.location='http://www.yahoo.com'}</script> -------------------------------------------- Peter Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.