问网页页面中如何用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> );
}