This JS will detect a users screen resolution for redirection to an
appropriate page on your site!

<head>
<script language="JavaScript">
function redirectPage() {
var url640x480 = "http://products.lunarpower.com.au/640x480";;
var url800x600 = "http://products.lunarpower.com.au/800x600";;
var url1024x768 = "http://products.lunarpower.com.au/1024x768";;
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
</script>

<!-- Copy this code into the BODY of your HTML document  -->

<center>
<form>
<input type=button value="Enter!" onClick="redirectPage()">
</form>
</center>

Cheers!

Peter Tilbrook
ColdFusion Applications Developer
Australia New Zealand Food Authority
Boeing House
55 Blackall Street
BARTON ACT 2600
Ph: +61-2-6271 2256
Fax: +61-2-6271 2278

http://www.anzfa.gov.au


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to