<div class="codetitle"> <span><a style="CURSOR: pointer" data="22721" class="copybut" id="copybut22721" onclick="doCopy('code22721')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code22721"> <br> <br> <br> <br><title>SwfObject2.2Demo</title> <br><script type="text/javascript" src="swfobject.js"></script> <br><script type="text/javascript"> <BR>var flashvars = { <BR>}; <BR>var params = { <BR>wmode: "transparent" <BR>}; <BR>var attributes = {}; <BR>swfobject.embedSWF("sound.swf", "sound", "1", "1", "9.0.0", "expressInstall.swf", flashvars, params, attributes); <br><br>function play(c) { <BR>var sound = swfobject.getObjectById("sound"); <BR>if (sound) { <BR>sound.SetVariable("f", c); <BR>sound.GotoFrame(1); <BR>} <BR>} <BR></script> <br> <br> <br><div id="sound"> <br> </div> <br><input type="button" value="播放" onclick="play('msg.mp3')"> <br> <br> <br> </div> <br>需要的引入文件,在js特效文件夹里面