Solved

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

Posted on 2011-03-04
3
325 Views
Last Modified: 2013-12-08
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>
0
Comment
Question by:jgosney
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 250 total points
ID: 35042202
http://www.quirksmode.org/css/condcom.html
<script type="javascript">
var test=new iesuckstest({
      wrapperid: "iesucks",
      dimensions: [490, 327]
}
</script>

.
.
.
<!--[if lte IE 6]>

<div id="iesucks">
According to the conditional comment this is Internet Explorer equal or lower than 6<br />
</div>
<script>
document.write("Testing");
</script>
<![endif]-->

Open in new window

0
 
LVL 27

Expert Comment

by:Tolomir
ID: 35422495
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now