TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

res script

Page: 1 Reply
Jul 13th 2002#58454 Report
Member since: Dec 24th 2001
Posts: 222
can anyone tell me where i can find a script that figures out the clients resolution so i can get my site to fit right
Reply with Quote Reply
Jul 14th 2002#58619 Report
Member since: Mar 24th 2002
Posts: 3114
screen.width
screen.height

^
Reply with Quote Reply
Jul 14th 2002#58629 Report
Member since: Dec 24th 2001
Posts: 222
OK so i put this script in to try for determining screen width and when my res is set to 1124 it tells me it is but when my screen res is set to 1024 or 800 it tells me its set to that and also tells me i have an error with my debugging else statement

function checkWidth() {
if (screen.width == 800) {
alert("firstone");
}
if (screen.width == 1024) {
alert("secondone");
}
if (screen.width == 1152) {
alert("thirdone");
}else{
alert("****edup");
}
}
checkWidth()
can anyone figure out why
Reply with Quote Reply
Jul 15th 2002#58893 Report
Member since: Mar 24th 2002
Posts: 3114
that should work... :confused:
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum