DEDE小技巧:DEDECMS会员登陆后不显示广告!

来源:asp之家 时间:2009-02-20 15:42:00 

代码如下:

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.mb5u.com\" target=\"_blank\">演示:模板无忧<\/a>")
}


红色部分为广告代码

标签:dede,会员,登陆,广告
0
投稿

猜你喜欢

  • SEO应多交流学习 才能成就SEO界的传奇

    2008-12-29 01:56:00
  • DedeCMS建站对网站推广的几点好处

    2009-08-04 16:45:00
  • 百度知道文档分享平台携五千个文档正式上线

    2009-11-13 15:07:00
  • 构建DNS服务器简易指南

    2010-08-23 18:29:00
  • 妙手回春,化解服务器登录难题(3)

    2007-03-27 10:26:00
  • 做个专业领域网站,轻松月入5K?

    2008-01-22 12:38:00
  • 糟糕的网站用户体验最高境界

    2007-11-02 00:03:00
  • 个人网站运营的七条黄金法则

    2008-07-26 12:06:00
  • 做另类的行业“站长”网

    2009-01-17 16:02:00
  • 百度对新站的收录规律

    2007-10-12 18:54:00
  • 如何将自己的网站加入到谷歌的资讯索引中

    2008-11-13 16:44:00
  • Discuz! X2子目录伪静态的实现方法

    2011-09-21 12:47:37
  • Discuz! 分类信息让地方论坛的信息更明细

    2009-02-20 16:15:00
  • 使用命令行配置Windows 2008防火墙

    2009-01-06 14:14:00
  • 一份项目管理提纲

    2011-05-14 16:46:00
  • GoDaddy:如何设置301重定向 Godaddy

    2010-04-07 13:04:00
  • 酷我音乐盒炫酷首推李宇春专版皮肤

    2009-11-07 16:19:00
  • 网站排名优化之竞争对手分析篇

    2009-09-28 03:47:00
  • 徐登:电子商务需要的是打肿脸充胖子

    2009-11-17 09:33:00
  • 马云称要让小网站盈利

    2007-12-03 21:14:00
  • asp之家 网站运营 m.aspxhome.com