Entry
How to introduce conditional comment into document with IE5
May 17th, 2000 05:56
Hiroto Sekine, http://www.all.co.nz/support/jpspell.htm
Try below code. The code works for IE browsers only, at least, this
stage.(you must add some dummy function to run below sample code.)
//==========[ Simple sample ]====================
<!--[if GTE IE 5]>
<P>Your browser is IE 5</P>
<![endif]-->
<![if LT IE 5]>
<P>Your browser is not IE 5</P>
<![endif]>
</body>
//==========[ Complicated sample ]===============
<body>
<!--[if GTE IE 5]>
<script language='JavaScript'>
<!--
document.write('<p class="ITEM" title="DblClick to view Browser
Capability" OnDblClick="showCaps();" style="font-size:expression
(document.body.clientWidth/32);" id="STUDENT">AAAAAAAAAAAAAA</p>');
// -->
</script>
<![endif]-->
<![if LT IE 5]>
<script language="JavaScript">
<!--
document.write('<p class="ITEM" title="DblClick to view Browser
Capability" OnDblClick="showCaps();" style="font-size:expression
(document.body.clientWidth/32);" id="STUDENT">BBBBBBBBBBBBBBB</p>');
// -->
</script>
<![endif]>
</body>