JS调用flash

/*JS调用flash*/
var EmbedStr = "";
function GetFlash(url,x,y) {
 EmbedStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
 EmbedStr += "<param name='allowScriptAccess' value='always' />";
 EmbedStr += "<param name='movie' value='" + url + "' />";
 EmbedStr += "<param name='quality' value='high' />";
 EmbedStr += "<param name='wmode' value='transparent' />";
 EmbedStr += "<param name='menu' value='false' />";
 EmbedStr += "<embed src='" + url + "' id='flashObject' name='flashObject' quality='high' menu='false' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 EmbedStr += "</object>";
 
 document.write(EmbedStr);
 return;
}


 <div class="mid_gsjj_left_flv_block">
<SCRIPT language=javascript type=text/javascript>GetFlash("img/mid_gsjj_block/joinin.swf","226","184");</SCRIPT>
</div>

 

你可能感兴趣的:(Flash)