Actually, a second thought too ...
You are going to 1280x1024 if you don't get a match on your resolution
check. Shouldn't you be going to 800x600 if you can't identify a higher
resolution.
And also ...
The small net notebooks typically have a resolution of 1024x600. This
should really be treated the same as 1024x768. Probably you should ONLY
look at the width.
Regards, Dave S
----- Original Message -----
From: "osman" <osman_azizi@...>
To: <JavaScript_Official@yahoogroups.com>
Sent: Thursday, January 08, 2009 5:21 AM
Subject: [JavaScript] why these redirect dosent work
> Ok roup, here is the script
>
> if (screen.width==800||screen.height==600) //if 800x600
> window.location.replace("http://adworldcorp.com/800x600.html")
>
> else if (screen.width==1024||screen.height==768) //if 1024x768
> window.location.replace("http://adworldcorp.com/1024x768.html")
>
> else //if all else
> window.location.replace("http://adworldcorp.com/1280x1024.html")
>
>
> There are 2 diferent situations:
> - These scrip work only with 3 options, if not 800x600 it goes and
> check for 1024x768 and if not it goes to 1280x1024, but if u try to
> make check for another resolutions 1024x800 then it dosent work, it
> sent you to 1280x800 even if u have 1280x1024. Now i ask, does the
> scrip only read the width and not width and hight, if so, then the
> problem is that cant have resolutions with same width.
> I am correct o not?
> By the way, sorry for the spelling. Not english spoken.
>
> Thanks
>
>
> ------------------------------------
>
> Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
>
>
>
>