【问题标题】:set preloader image to swf将预加载器图像设置为 swf
【发布时间】:2012-12-02 02:58:36
【问题描述】:

我有一个 html 文件,其中包含大约 3 mb 的 swf flash 介绍

我希望在 swf 完全加载之前使用 jquery 或 ajax 显示加载预加载器。如何设置此预加载器请提供这些代码

提前致谢

我正在使用以下代码

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="jquery.js"></script>
    <script>
        $(document).ready(function(){ 
        $('embed').ready(function(){
        $('img').hide();
          });
   });
     </script>

 </head>

 <body >
 <div id="loaddata">

  <img src="loading.gif"  />
  <embed src="red.swf" width="100%" height="100%" ></embed>



 </div>

 </body>
</html>


but it is not working

【问题讨论】:

    标签: jquery ajax flash preloader


    【解决方案1】:
         HTML code ( where you want to add the embed code )
    
    
    
        <div style="display:none" id="dvloader"><img src="loading.gif" /></div>
    

    jQuery 代码

     $(function() {
    
                $("#dvloader").show();
                $(".block1").load("swf.html", function(){ $("#dvloader").hide(); });
                return false;
    
        });
    

    【讨论】:

    • 您是否使用了包含 SWF 的另一个页面
    • 我不需要按钮,我只想在 swf 加载完成时删除加载图像
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-25
    • 2013-06-03
    • 2015-05-03
    • 2016-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多