cross browser - How to embded a SWF on a HTML page? -


i trying while display correctly swf project in html file integration in browser.

the swf there : http://bitbucket.org/natim/cip-qcu-editor/raw/4746bbb86427/qcu/swf/quiz.swf , tried using method : http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml , 1 : http://www.bobbyvandersluis.com/swfobject/generator/index.html without success.

actually works not firefox 3.6 doesn't start animation.

do have idea of how can make works ?

thanks

i finaly used swfobject :

<html>   <head>     <title>qcu - cip utbm &copy; 2010</title>     <meta name="author" content="rémy hubscher"/>     <style type="text/css">       * { margin: 0; padding: 0; }       html, body { width: 100%; height: 100%; background-color: #3f3fff; }       div, object { width: 100%; height: 100% }     </style>     <script type="text/javascript" src="js/swfobject.js"></script>   </head>   <body>     <div id="quiz_content">       <object type="application/x-shockwave-flash" name="quiz" id="quiz" data="swf/quiz.swf">     <param value="swf/quiz.swf" name="movie"/>     <param value="true" name="play"/>     <param value="true" name="loop"/>     <param value="true" name="allowfullscreen"/>     <param value="always" name="allowscriptaccess"/>     <param value="high" name="quality"/>     <param name="wmode" value="window" />     <param name="scale" value="showall" />     <param name="flashvars" value="xml_file=xml/quiz.xml"/>       </object>     </div>      <script type="text/javascript">       var flashvars = {         xml_file: "xml/quiz.xml"       };        var params = {         wmode: "window",         play: "true",         loop: "true",         allowfullscreen: "true",         scale: "showall",         allowscriptaccess: "always",       };        var attributes = {         id: "quiz"       };       swfobject.embedswf("swf/quiz.swf", "quiz_content", "100%", "100%", "9.0.0", false, flashvars, params, attributes); </script>     </body> </html> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -