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
投稿

猜你喜欢

  • Docker for Windows 使用 VMware WorkStation的详细教程

    2023-04-19 16:37:35
  • 解决VMware仅主机模式虚拟机无法ping通物理机问题

    2021-01-31 23:50:31
  • 美国主机godaddy空间使用的问题

    2010-04-12 13:02:00
  • 全国的DNS地址

    2010-01-02 19:18:00
  • 网页游戏公司守正才能出奇 才能野蛮生长

    2009-09-30 09:29:00
  • Win2003IIS6.0+PHP521+Mysql5037+Zend326+phpmyadmin210环境配置图文教程

    2007-08-16 09:43:00
  • 挖掘自己内在的潜能吧

    2009-10-25 13:15:00
  • 教你解决Discuz!论坛时间不统一问题

    2009-08-06 17:50:00
  • 手机上网将成日常必需品 WAP2.0站长

    2008-05-21 12:22:00
  • 网站首页被GOOGLE降权后的处理方法

    2009-03-24 16:52:00
  • VMware Workstation下安装Linux教程(图文)

    2021-05-03 16:09:02
  • 详解VMware 当中出现:无法将 Ethernet0 连接到虚拟网络"VMnet8"的问题

    2022-08-19 06:20:26
  • 在VMware虚拟机里安装Linux操作系统

    2020-12-25 14:44:09
  • 反垃圾邮件技术解析

    2007-08-28 13:49:00
  • 广告软文不是卖狗皮膏药

    2009-01-21 09:15:00
  • Google AdSense西联汇款问题帐户 延迟一周付款

    2007-10-28 16:07:00
  • SEO的URL如何优化才是最佳

    2008-04-06 14:25:00
  • docker run -d和docker run -it的区别详解

    2021-07-29 14:05:39
  • 安装Exchange 2000实现随时随地的通讯

    2010-02-21 18:43:00
  • Linux中logrotate日志轮询操作总结

    2023-06-21 20:25:46
  • asp之家 网站运营 m.aspxhome.com