代码之家  ›  专栏  ›  技术社区  ›  Eugeniu Torica

用SWFObject进行闪光检测

  •  1
  • Eugeniu Torica  · 技术社区  · 16 年前

    我不太理解下载的SWFObject示例http://download.macromedia.com/pub/developer/alternative_content_examples.zip“>在这里

    <|--[如果!IE]>--&燃气轮机;说明书 只是检查一下?

    1 回复  |  直到 16 年前
        1
  •  1
  •   Andy Li    16 年前

    不代码并不意味着它只是检查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>
    
    推荐文章