Published in: JavaScript
Get rid of the "click here to activate" using a little javascript.
// create a .js file with the following replacing the appropriate content // ensuring each document.write spans one line only, save this as flashfix.js function RunFlash() { document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="660" height="211">\n'); document.write('<param name="movie" value="images/flash.swf" />\n'); document.write('<param name="quality" value="high" />\n'); document.write('<param name="wmode" value="transparent" />\n'); document.write('<embed src="images/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="660" height="211"></embed>\n'); document.write('</object\n'); } // include this javascript in the head of the document you need it on. // then in the right place in your html use the following to display the flash. <script type="text/javascript">RunFlash();</script> // If you find it isn't working you may want to check the following basic things. // ensure the path to the .js file is correct in the head <script type="text/javascript" src="/js/flashfix.js"></script> make sure each line in the js (each document.write) is on it's own line, that caught me out once.
You need to login to post a comment.
