mattburnsey
03-28-2005, 10:28 PM
So I'm redesigning my site (it's long overdue) and I've decided to design two sites, one for 800X600 and smaller screen resolutions and one for anything bigger. Here's what I've come up with for the page to redirect them:
<html>
<head>
<script type="text/javascript">
swide = screen.width;
sheight = screen.height;
if (swide <= "800" && sheight <= "600")
{
window.location="http://www.mattburnsey.com/small/home.htm";
}
else
{
window.location="http://www.mattburnsey.com/big/home.htm";
}
</script>
</head>
<body>
</body>
</html>
My only problem with that method is that it shows up as dangerous active content that computers will try to block and anyone not computer savy will choose not to see my site. Is there a better way?
<html>
<head>
<script type="text/javascript">
swide = screen.width;
sheight = screen.height;
if (swide <= "800" && sheight <= "600")
{
window.location="http://www.mattburnsey.com/small/home.htm";
}
else
{
window.location="http://www.mattburnsey.com/big/home.htm";
}
</script>
</head>
<body>
</body>
</html>
My only problem with that method is that it shows up as dangerous active content that computers will try to block and anyone not computer savy will choose not to see my site. Is there a better way?