The following section Code Is to test the effect of the conditional comment statement in Microsoft's IE browser
Program code <! -- [If IE]>
<H1> you are using IE <! [Endif] -->
<! -- [If IE 5]>
<H1> Version 5 <! [Endif] -->
<! -- [If IE 5.0]>
<H1> Version 5.0 <! [Endif] -->
<! -- [If IE 5.5]>
<H1> Version 5.5 <! [Endif] -->
<! -- [If IE 6]>
<H1> Version 6 <! [Endif] -->
<! -- [If IE 7]>
<H1> Version 7 <! [Endif] -->
The following code is a condition comment for running in a non-IE browser
Program code <! -- [If! IE]> <! -->
<H1> you are not using Internet Explorer <! -- <! [Endif] -->
It eventually works in non-ie and special ie browsers
(Or use LTE lt or gt gte to determine, for example:
<! -- [If lte ie 6]>
Information displayed in IE 6
<! [Endif] -->
).
<! -- [If IE 6]> <! -->
<H1> you are using Internet Explorer version 6 <br/>
Or a non-IE browser <! -- <! [Endif] -->
-------------------------------------------------
<HTML>
<Head>
<Title> 'if IE-www.51windows.Net </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Meta name = "author" content = "51 windows, Hawa, haiwa">
<Meta name = "Description" content = "power by 51windows. Net">
</Head>
<Body>
<! -- [If GTE ie 5]>
<Li> IE 5.0-6.x
<! [Endif] -->
<! -- [If IE 5]>
<Li> IE 5.0
<! [Endif] -->
<! -- [If IE 5.5000]>
<Li> IE 5.5
<! [Endif] -->
<! -- [If IE 6]>
<Li> IE 6.0
<! [Endif] -->
<! -- [If GTE ie 5.5000]>
<Li> IE 5.5-6.x
<! [Endif] -->
<! -- [If lt IE 6]>
<Li> IE 5.0-5.5
<! [Endif] -->
</Body>
</Html>
<Div style = "position: absolute; top: 10; Right: 10; width: 148; Height: 18; cursor: Hand">
<Input type = "button" name = "button" value = "ViewSource code"Onclick = 'window. Location =" view-source: "+ window. Location. href '> </div>