2012-12-14 4 views
0

i dispose d'un fichier HTML contenant une intro flash swf d'environ 3 mbensemble image préchargement swf

je veux que jusqu'à ce que le swf soit complètement chargé un préchargement de chargement est affiché à l'aide jquery ou ajax .comment pour définir cette préchargement s'il vous plaît fournir le code pour ces

merci à l'avance

je suis en utilisant le code suivant

<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 

Répondre

0
 HTML code (where you want to add the embed code) 



    <div style="display:none" id="dvloader"><img src="loading.gif" /></div> 

Code Jquery

$(function() { 

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

    }); 
+0

pas bro il est pas d'entraînement – PHL

+0

avez-vous utilisé une autre page contient le fichier SWF – underscore

+0

Je modifié ma réponse – underscore