Flash Animation |javascript| Page | page
Q: How do I invoke Flash animation with JavaScript in page pages?
For:
Join in <HEADE> area
Program code
<script src= "Js/flash.js" type= "Text/javascript" ></script>
Join at the call Flash
Program code
<script language= "JavaScript" type= "Text/javascript" >
<!--
playswf ("swf/name. swf", wide, high)
-->
</script>
Flash.js Code:
Program code
JavaScript Document
function playswf (sfile,swidth,sheight) {
document.write (' <object classid= ' clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 "codebase=" http:// Download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab "width=" ' + swidth + ' "height=" ' + sHeight + ' ">");
document.write (' <param name= ' movie "value=" ' + sfile + ' "> ');
document.write (' <param name= ' quality "value=" High ">");
document.write (' <param name= "wmode" value= "Transparent" > ");
document.write (' <embed src= ' + sfile + ' "wmode=" Transparent "quality=" high "pluginspage=" http:// Www.macromedia.com/go/getflashplayer "type=" Application/x-shockwave-flash "width=" ' + swidth + ' "height=" ' + sheight + ' "></embed>");
document.write (' </object> ');
}