View Full Version : resolution reading ...

07-21-2002, 01:35 AM
My site is best viewed at 1024*768 resolution.

At the opening page there is an alert that says "Site best viewed at 1024*768 resolution", then a 6 second timeout, and finally redirects to main page.

How can I first get their screen-resolution, then either redirect if it is 1024*768, skipping the alert; but if its not then alert and redirect?

07-21-2002, 02:58 AM
if(screen.width == 1024)
setTimeout('window.location = "b.htm"',6000)
alert('best viewed')

something like this

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum