【问题标题】:How to automatically altenate between swf files in a div?如何在 div 中的 swf 文件之间自动切换?
【发布时间】:2013-12-11 16:38:07
【问题描述】:

我有一些 swf 文件,我会将它们放入其中,使它们每 10 秒自动交替一次,有没有办法使用 html 来做到这一点?

我的 div 现在是这样的:

<div class="main">
<div class="main_content">
    <object width="100%" height="100%">
            <param name="movie" value="images/lobby.swf">
            <embed src="images/lobby.swf" width="100%" height="100%">
            </embed>
            </object>
</div>
<div class="main_content_left">

    <h1 class="bolder">11 de dezembro de 2013</h1>
    <h2> Convenção Nike </h2>
    </div>
</div>

【问题讨论】:

    标签: html flash swfobject alternate


    【解决方案1】:

    终于解决了我的问题,下面是我得到的代码:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Some title</title>
    <link href="tools/style.css" rel="stylesheet" type="text/css" />
    <script src="tools/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="tools/jquery.cycle.all.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    
    $(function () {
      $('#flash').cycle({fx: 'zoom', speed: 10000.], timeout:8000 });
            });
    </script>
    </head>
    
      <body>
    
    <div id="flash">
    
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1550px" height="630">
     <param name="movie" value="images/myimage1.swf" />
     <param name="quality" value="high" />
     <param name="wmode" value="transparent">
     <embed src="images/myimage1.swf" quality="high" type="application/x-shockwave-flash" width="1550px" height="630" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
     </object>
    
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1550px" height="630">
     <param name="movie" value="images/myimage2.swf" />
     <param name="quality" value="high" />
     <param name="wmode" value="transparent">
     <embed src="images/myimage2.swf" quality="high" type="application/x-shockwave-flash" width="1550px" height="630" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
     </object>
    
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1550px" height="630">
     <param name="movie" value="images/myimage3.swf" />
     <param name="quality" value="high" />
     <param name="wmode" value="transparent">
     <embed src="images/myimage13.swf" quality="high" type="application/x-shockwave-flash" width="1550px" height="630" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
     </object>
    
    </div>
    </body>
    </html>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-11
      • 2017-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      相关资源
      最近更新 更多