![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
//FLASH路径,FLASH高度,FLASH宽度,对象名,对象编号,重定向路径
//url广告路径,w广告宽度,h广告高度,objname广告主,getid广告索引ID,redirecturl广告重定向地址,flag广告类型1-图片,0-flash
function flash_show(url,w,h,objname,getid,redirecturl,flag)
{
if(flag==1)
{
document.write('<a href="power_a.aspx?aid='+getid+'&url='+redirecturl+'" target="_blank">');
document.write('<img src="'+url+'" width="'+w+'" height="'+h+'" border="0" /></a>');
}
else
{
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="'+url+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="FlashVars" value="objname='+objname+'&getaid='+getid+'&redirecturl='+redirecturl+'">');
document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="transparent"></embed>');
document.write('</object>');
}
}
posted @
2008-08-28 09:49
╰⑥月の雨╮
阅读(
181)
评论()
编辑
收藏
举报