页面引入flash
function shFlashObj(id, data, oWidth, oHeight, flashvals,beFullScreen) {
var swf='<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+oWidth+'" height="'+oHeight+'">';
swf+='<param name="movie" value="'+data+'" />';
swf+='<param name="wmode" value="transparent" />';
swf+='<param name="quality" value="high" />';
swf+='<param name="allowScriptAccess" value="always" />';
swf+='<embed wmode="transparent" src="' + data + '" quality="high" width="'+ oWidth + '" height="' + oHeight + '" type="application/x-shockwave-flash" allowScriptAccess="always" name="'+ id +'"></embed>';
swf+='</object>';
return swf;
}
//调用
$('#flash').html(shFlashObj("obj","./1×1 pv.swf","1","1","",true));