We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

neal_grosskopf on 04/07/08


Tagged

javascript html flash validations


Versions (?)


Who likes this?

5 people have marked this snippet as a favorite

neal_grosskopf
basicmagic
Tomm
Minras
joomla


Embedding Flash Without Click To Activate Using Valid HTML


Published in: HTML 


URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=9

Flash sucks, embedding it sucks more, find out how to make it not suck.

  1. <script type="text/javascript">
  2. function writeFlash(file)
  3. {
  4. document.write('<object type="application/x-shockwave-flash" data="'+file+'">')
  5. document.write('<param name="movie" value="'+file+'">')
  6. document.write('<param name="loop" value="false">')
  7. document.write('<param name="wmode" value="transparent">')
  8. document.write('</object>')
  9. }
  10.  
  11. <script type="text/javascript">
  12. writeFlash("/yourfile.swf");

Report this snippet 

You need to login to post a comment.