Browser Redirect For IE7?
by Michael Thibault
on
Mar 20, 2008 at 6:30:18 pm
Ideally, I'd like to redirect Internet Explorer for both Mac & PC earlier than version 7--Supposedly, the latest version doesn't have the PNG transparency issue. It's a little hard to scrounge up the proper redirect code online as most of the samples are pretty old and rarely address any version of IE newer than 5.x. If anyone can suggest the additional code that would also detect versions earlier than IE7 that would be greatly appreciated. I currently have placed this code in my index and it's working good (This isn't EXACTLY the code, since I had to replace the < character with < so I could post this. I know, it looks like a mess to me too):
<a href='<img src='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<title>redirecting</title>
<script language='Javascript' type='text/Javascript'>
<!--
if ((navigator.appName=="Microsoft Internet Explorer") || (navigator.appName=="Netscape"))
{
if (navigator.appName=="Microsoft Internet Explorer")
window.location = "browser.html";
else
window.location = "gauntlet.html";
}
else
window.location = "gauntlet.html";
//-->
</script>
</head>
<body>
</body>'><img src='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<title>redirecting</title>
<script language='Javascript' type='text/Javascript'>
<!--
if ((navigator.appName=="Microsoft Internet Explorer") || (navigator.appName=="Netscape"))
{
if (navigator.appName=="Microsoft Internet Explorer")
window.location = "browser.html";
else
window.location = "gauntlet.html";
}
else
window.location = "gauntlet.html";
//-->
</script>
</head>
<body>