/ Published in: JavaScript
guardar como flash.js
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function showFlash (url, width, height, color){ 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">'); document.write ('<param name="allowScriptAccess" value="sameDomain" />'); document.write ('<param name="movie" value="' + url + '" />'); document.write ('<param name="quality" value="high" />'); document.write ('<param name="bgcolor" value="' + color + '" />'); 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" />'); document.write ('</object>'); }