我想使用带有 JavaScript 的 on click 命令更改 Flash
现在,这里的按钮工作正常,但闪光灯不显示......
JavaScript 代码
<script>
var count=0;
function mafunct(flash){
var path="a"+count+".swf";
flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';
alert(path);
flash+='<PARAM NAME="movie" VALUE='+path+' >';
flash+='<PARAM NAME="PLAY" VALUE="false">';
flash+='<PARAM NAME="LOOP" VALUE="false">';
flash+='<PARAM NAME="QUALITY" VALUE="high">';
flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
flash+='</EMBED>';
flash+='</OBJECT>';
document.write(flash);
count++;
}
</script>
HTML 按钮代码
<button onclick="mafunct()">next</button>
我的 Flash 文件被命名为a0.swf
,a1.swf
....等