« 说真话就是说笑话?谨以此文:祭奠那逝去的动易岁月! »

会员登陆后不显示广告代码合集

dedecms的代码如下:

function getCookie(Name) {
var search = Name + "=";
if (window.document.cookie.length > 0) { // if there are any cookies
offset = window.document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length; // set index of beginning of value
end = window.document.cookie.indexOf(";", offset) // set index of end of cookie value
if (end == -1)
end = window.document.cookie.length;
return unescape(window.document.cookie.substring(offset, end));
}
}
return null;
}

var username
username=String(getCookie("DedeUserIDckMd5")).toLowerCase();
if (username.length<2 || username=="null")
{
document.writeln("<a href=\"http:\/\/www.61gu.com\" target=\"_blank\">儿童谷<\/a>")
}

 

DZ的游客显示广告代码

比如原贴间广告(上方)代码
原为
<div id="ad_thread2_$post[count]"></div>
可修改为

<!--{if $discuz_uid}-->
不显示广告
<!--{else}-->
<div id="ad_thread2_$post[count]"></div>
<!--{/if}-->
即可.

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Arwen Build 81206

这里是萌芽的个人博客,仅供自己写一些原创的文章和转载保留一些对自己有用的文章,非常感谢你的访问!
本博客网址www.myshequ.com