不代码并不意味着它只是检查IE。
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="728" height="90" id="myFlashContent">
<param name="movie" value="banner.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="banner.swf" width="728" height="90">
<!--<![endif]-->
<img src="banner.jpg" alt="Alternative content rules!" />
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
第二个是:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="270" id="myFlashContent">
<param name="movie" value="movie.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="movie.swf" width="480" height="270">
<!--<![endif]-->
<ol>
<li><img src="frame1.jpg" alt="" />It's night-time, a UFO flies over the pasture, cows grazing</li>
<li><img src="frame2.jpg" alt="" />The UFO tries to abduct two cows using a tractorbeam, however the cows appear to be too heavy to be lifted off the ground</li>
<li><img src="frame3.jpg" alt="" />It's daytime again, cows are still grazing, one cow looks very relieved</li>
</ol>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<!--[if !IE]>-->
和
<!--<![endif]-->
一对一对地工作。他们就像
if (!isIE){ //... }
. 这意味着IE将忽略这对代码中的代码(注意
!
意思是“不”。它们实际上与闪光检测无关。
<img src="banner.jpg" alt="Alternative content rules!" />
将显示。第二,它是
<ol>
<li><img src="frame1.jpg" alt="" />It's night-time, a UFO flies over the pasture, cows grazing</li>
<li><img src="frame2.jpg" alt="" />The UFO tries to abduct two cows using a tractorbeam, however the cows appear to be too heavy to be lifted off the ground</li>
<li><img src="frame3.jpg" alt="" />It's daytime again, cows are still grazing, one cow looks very relieved</li>
</ol>