Link to home
Start Free TrialLog in
Avatar of jgosney
jgosney

asked on

I'm trying to write a code that displays an alternate image gallery for those using IE 6 and below

I'm trying to write a code that displays an alternate image gallery for those using IE 6 and below. Right now, I'm just testing it with a document.write command before moving on. It's (obviously) not working. Here's what I have:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>One World Circus</title>
</script>

<script type="javascript">
var browser = navigator.appName
var ver = navigator.appVersion
var thestart = parseFloat(ver.indexOf("MSIE"))+1
var brow_ver = parseFloat(ver.substring(thestart+4,thestart+7))
var test=new iesuckstest({
      wrapperid: "iesucks",
      dimensions: [490, 327],

if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7))

(
document.write("Testing");
)
})

</script>
</head>

<body>

<div id="iesucks">
</div>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.