Embedding Flash Without Click To Activate Using Valid HTML


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

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


Copy this code and paste it in your HTML
  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");

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.