幻灯片调用广告代码 无标题

2007-3-6 chenmo 网站建设

在广告位置插入:<script language="javascript" src="http://chenmo.asbbs.cn/ad/asbbs-slide.js"></script>

asbbs-slide.js的代码如下:

var focus_width=180
var focus_height=166
var text_height=0
var swf_height = focus_height+text_height

var pics=http://chenmo.asbbs.cn/ad/asbbs-slide/1.jpg|http://chenmo.asbbs.cn/ad/asbbs-

slide/2.jpg|http://chenmo.asbbs.cn/ad/asbbs-slide/3.jpg'
var links='http://asbbs.cn|http://chenmo.asbbs.cn|http://asbbs.cn/bbs'
var
texts='.|.|.|.'

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+

focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowscriptAccess" value="sameDomain"><param name="movie" value="http://chenmo.asbbs.cn/ad/slide.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars"

value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&texth

eight='+text_height+'">');
document.write('<embed src=http://chenmo.asbbs.cn/ad/slide.swf  wmode="opaque"

FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&t

extheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+

focus_height +'" allowscriptAccess="sameDomain" type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');

 

修改其中红色部分的图片地址和连接地址就可以了。

Powered by emlog 湘ICP备13007859号 空间由景安网络赞助