PDA

View Full Version : Just looking for an opinion.


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?

_Aerospace_Eng_
03-28-2005, 11:21 PM
this usually occurs with any script that is run in internet explorer on a system that has SP2 installed, there isn't anything you can do about it, other than just make a fluid layout or just make a layout for 800x600 users and just use the same layout for the peeps with larger resolutions