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.