問網頁頁面中如何用Javascript調用Flash動畫?
答
在<HEADE>區加入
程序代碼
<script src=js/flashjs type=text/javascript></script>
在調用FLASH處加入
程序代碼
<script language=JavaScript type=text/javascript>
<!
playswf(swf/名字swf寬高)
//>
</script>
flashjs代碼
程序代碼
// JavaScript Document
function playswf(sFilesWidthsHeight){
documentwrite(<object classid=clsid:DCDBEAEDcfB codebase=#version= width=+ sWidth + height=+ sHeight +> );
documentwrite( <param name=movie value=+ sFile +> );
documentwrite( <param name=quality value=high> );
documentwrite( <param name=wmode value=transparent> );
documentwrite( <embed src=+ sFile + wmode=transparent quality=high pluginspage= type=application/xshockwaveflash width=+ sWidth + height=+ sHeight +></embed> );
documentwrite(</object> );
}
From:http://tw.wingwit.com/Article/program/Java/Javascript/201311/25308.html