在页面上添加falsh播放的 Js 方法

<!--加载flash方法(flash路径,宽度,高度)-->
function load(name,w,h){
    document.write('<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="'+w+'" height="'+h+'">');
    document.write('<param name="movie" value="'+name+'">');
    document.write('<param name="quality" value="best">');
    document.write('<param name="menu" value="false">');
    document.write('<param name="allowscale" value="false">');
    document.write('<param name="wmode" value="Transparent">');
    document.write('<embed src="'+name+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="Transparent" width="'+w+'" height="'+h+'"></embed>');
    document.write('</object>');
}

 

你可能感兴趣的:(js)