swfObject in xhtml doc structure.


/ Published in: HTML
Save to your folder(s)

swfObject in XHTML doc structure.


Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6.  
  7. <title>untitled</title>
  8. <script type="text/javascript" src="swfobject.js"></script>
  9. </head>
  10.  
  11.  
  12.  
  13.  
  14. <div id="flashcontent">
  15. This text is replaced by the Flash movie.
  16. </div>
  17.  
  18. <script type="text/javascript">
  19. var so = new SWFObject("movie.swf", "mymovie", "200", "100", "8", "#FFFFFF");
  20. so.write("flashcontent");
  21.  
  22. </body>
  23. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.