|
-
Sep 21st, 2001, 10:22 AM
#2
Fanatic Member
there is a way... here is how I did it, though I did it to re-direct them to the version of the site that they would be able to see (either 1024x768 or 600x800) though you could use it for more than that amount of resolutions!
Put this bit in the < head >
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
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>
And put this bit in the button (if you are using a button)
onClick="redirectPage()"
I hope that this helps..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|