Not a Member Yet,
Click here to Register

ID: 24
Viewed: 3337
Added: Nov 23, 2001
Version:
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

detects the screen resolution of the user and redirects them to a specific page.

<!---Head--->
<SCRIPT LANGUAGE="JavaScript"> 

<!-- Begin
function redirectPage() {
var url640x480 = "indexlinks640.htm";
var url800x600 = "indexlinks800.htm";
var url1024x768 = "indexlinks1024.htm";
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;
}
// end -->
</script>

<!---Body--->


 //And Put this bit In the button (If you are using a button) 

onClick="redirectPage()"


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Replying to a Comment...


Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2024 snippetlibrary.com All Rights Reserved. Conditions
Do NOT follow this link or you will be banned from the site!