Rutina para poner flash en HTML


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

guardar como flash.js


Copy this code and paste it in your HTML
  1. function showFlash (url, width, height, color){
  2. document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + width + '" height="' + height + '" id="flash" align="middle" SWLIVECONNECT="true">');
  3. document.write ('<param name="allowScriptAccess" value="sameDomain" />');
  4. document.write ('<param name="movie" value="' + url + '" />');
  5. document.write ('<param name="quality" value="high" />');
  6. document.write ('<param name="bgcolor" value="' + color + '" />');
  7. document.write ('<embed src="' + url + '" quality="high" width="' + width + '" height="' + height + '" bgcolor="' + color + '" name="SOredirect" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" SWLIVECONNECT=true pluginspage="http://www.macromedia.com/go/getflashplayer" />');
  8. document.write ('</object>');
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.