2012-12-14 102 views
0

我有含有约3 MB组预加载图像SWF

我想,直到瑞士法郎满载显示一个预加载器加载使用jquery或AJAX。如何设置该预加载的SWF闪光介绍一个HTML文件请提供这些

感谢代码提前

我用下面的代码

<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 

回答

0
 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; 

    }); 
+0

没有兄弟是不是锻炼 – PHL

+0

,你使用的另一页包含SWF – underscore

+0

我编辑我的答案 – underscore