craigtaylor74
04-20-2004, 07:41 PM
Hi,
I´m using the following js to redirect form an external js file:
if (screen.width==800||screen.height==600) //if 800x600
window.location.replace("http://www.glasgowapartment.co.uk/index800.htm")
else if (screen.width==640||screen.height==480) //if 640x480
window.location.replace("http://www.microsoft.com")
else if (screen.width==1024||screen.height==768) //if 1024x768
window.location.replace("http://www.glasgowapartment.co.uk")
else //if all else
window.location.replace("http://freewarejava.com")
but somethings not right as when I press go in the address bar it does redirect the address it is searching for but nothing else happens ... the address and the status bar just flicker away. Difficult to explain but if you have 800*600 resolution you can see by entering www.glasgowapartment.co.uk
Any ideas would be appreciated.
I´m using the following js to redirect form an external js file:
if (screen.width==800||screen.height==600) //if 800x600
window.location.replace("http://www.glasgowapartment.co.uk/index800.htm")
else if (screen.width==640||screen.height==480) //if 640x480
window.location.replace("http://www.microsoft.com")
else if (screen.width==1024||screen.height==768) //if 1024x768
window.location.replace("http://www.glasgowapartment.co.uk")
else //if all else
window.location.replace("http://freewarejava.com")
but somethings not right as when I press go in the address bar it does redirect the address it is searching for but nothing else happens ... the address and the status bar just flicker away. Difficult to explain but if you have 800*600 resolution you can see by entering www.glasgowapartment.co.uk
Any ideas would be appreciated.