年年我发电子商务



返回   年年我发电子商务 > 网站建设 > vBulletin技术交流
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

vBulletin技术交流 主要讨论vBulletin的安装使用、模板风格、插件以及小技巧等。

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 117.95.51.153
旧 2009-08-10, 05:41 PM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 686
精华: 11
现金: 523 元
资产: 2971 元
声望: 10 topvip 正向着好的方向发展
默认 如何在首页加入不同的内容?

比如,在首页多加一组adsense广告代码,可这么操作:

代码:
<if condition="THIS_SCRIPT == 'index'"> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; /* 160x600, vbb */ google_ad_slot = "xxxxxxxxxxxxxxxx"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; /* 160x600, vbb */ google_ad_slot = "xxxxxxxxxxxxxxxx"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <else /> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxx"; /* 160x600, vbb */ google_ad_slot = "xxxxxxxxxxxxxxxx"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </if>
即可这么写:

代码:
<if condition="THIS_SCRIPT == 'index'"> {banner for index here} <else /> {banner for all other pages here} </if>
回复时引用此帖

wellcome to www.0058.net
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛禁用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转

prescription glasses ink cartridges 展览展示 干燥剂 电加热器 电子散热器 电热管 发酵罐 prescription glasses


所有时间均为北京时间. 现在的时间是 11:27 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2010,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager