
Originally Posted by
BTC
What am I doing wrong?
With the code you posted?
Nothing!
I just tried this to eliminate any syntax errors and it worked as expected:
HTML Code:
<!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>Unbenanntes Dokument</title>
<!--[if lte IE 8]>
<script>alert("lt IE 8");</script>
<![endif]-->
<!--[if IE 8]>
<script>alert("IE 8");</script>
<![endif]-->
<!--[if IE 7]>
<script>alert("IE 7");</script>
<![endif]-->
</head>
<body>
</body>
</html>
Try this in your code (with the alert). Does it work?
If so, then I can only imagine that one of these two lines is causing you problems:
HTML Code:
<script src="js/html5shiv.js"></script>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js">
Bookmarks