Published Articles

十 21st, 2010  |  (2+)discuz仿腾讯网首页顶部 图片由大变小 广告代码备查

刚刚把卡商网http://www.kashang.net搞好。打开即可查看效果
1、js文件上传至/static/js/topfull.js
2、登陆discuz!1.5x后台  【扩展】- 【添加自定义广告位】(在页面最下边)
   设置广告标题,展现方式选为代码;
   代码栏填写
<script type="text/javascript">(function(){
var a = AD2, dom = a.DomUtil, evt = a.DomEventUtil;
a.area({
id: 'QQ_Full'
})({
oid: '1105508',
cid: '88850',
monitor_url: '',
display: 'fullscreen',
display_config: {
delay: 1,//页面打开后广告开始弹出的时间
duration: 10,//广告弹出后停留的时间
show_duration: .6,//广告展开的速度,建议设置为5~9之间
hide_duration: .6//广告收起的速度,建议设置为5~9之间
},
fodder: [{
type: 'image',
resource_url: 'http://*.jpg',//广告地址,可以是图片或flash
link_to: 'http://www.***.com',//添加你的链接地址
width: 960,
height: 293,
cover: false
}]
});
a.render('QQ_Full');
a.ping.flush();
})();</script>

提交后在编辑广告页面顶部选【内部调用】,第一次自定义广告的话代码是<!–{ad/custom_1}–>
3、/template/default/forum/discuz.htm
最底下<!–{subtemplate common/footer}–>前增加一个<!–{ad/custom_1}–>

<!–{subtemplate common/header}–>与<!–{subtemplate common/pubsearchform}–>之间添加<script src="/static/js/topfull.js" type="text/javascript"></script><div id="QQ_Full" style="width:980px; margin:0 auto; display:none;"></div>

刷新首页即可看到效果。更新广告时在dz广告后台里刚才自定义的广告那里,把代码里相应位置广告改一下即可。

原创文章,版权所有©转载请注明: 转载于“67chao's blog”

本文永久地址:http://www.67chao.com/blog/534

盖楼 (2) 层

 

  1. admin@sumxue.com 说道:

    怎么把重播 给去掉呢?谢谢!

    67chao 回复:

    你是说去掉“重播”两个字么?

发表留言