首页 > 网站 > 建站经验 > 正文

ASPcms如何去掉前后台版权

2024-04-25 20:47:42
字体:
来源:转载
供稿:网友
找到/inc/AspCms_MainClass.asp然后打开,并删除以下代码: & "- Powered by <a href='http://www.aspcms.com' target='_blank'><font color='#5C5C5C'>AspCms2</font></a>"

删除后台升级检测:打开文件/admin_aspcms/inc/AspCms_SettingClass.asp,删除以下段内容 dim a,t,pa="<s"&"cript type=""te"&"xt/javascript"" s"&"rc='htt"&"p://up.aspc"&"ms.com/"&"ad/ad"&".a"&"sp'></scr"&"ipt>"t="<s"&"cript type=""te"&"xt/javascript""  s"&"rc='htt"&"p://up.aspc"&"ms.com/"&"version/version"&".asp"&"?ver="&aspcmsVersion&"'></scr"&"ipt>"p=""

right.asp删除<echo a%> <echo t%>

删除right_user.asp底部对版本数据检测调用:
<echo a%>
<script type="text/javascript" src='http://up.aspcms.com/version/version.asp?ver=<%=aspcmsVersion%>'></script>

修改后台左侧版权:打开menu.asp,然后将里面的:
<p>Powered by <A class=txt_C1  href="http://www.aspcms.com/" target=_blank>ASPCMS!</A></p><p>&copy;2006-2011, <A class=txt_C1  href="http://www.Chancoo.com/" target=_blank>ChanCoo</A> Inc.</p>删除


然后把js/menu.js内容全部替换为如下内容即可

function $Nav(){

if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE';

  else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF';

  else return "OT";

}



var preID = 1;



function OpenMenu(cid,lurl,rurl,bid){

   if($Nav()=='IE'){

     if(rurl!='') top.document.frames.main.location = rurl;

     if(cid > -1) top.document.frames.menu.location = 'menu.asp?id='+cid;

     else if(lurl!='') top.document.frames.menu.location = lurl;

     if(bid>0) document.getElementById("d"+bid).className = 'thisclass';

     if(preID>0 && preID!=bid) document.getElementById("d"+preID).className = '';

     preID = bid;

   }else{



     if(rurl!='') top.document.getElementById("main").src = rurl;

     if(cid > -1) top.document.getElementById("menu").src = 'menu.asp?id='+cid;

     else if(lurl!='') top.document.getElementById("menu").src = lurl;

     if(bid>0) document.getElementById("d"+bid).className = 'thisclass';

     if(preID>0 && preID!=bid) document.getElementById("d"+preID).className = '';

     preID = bid;

   }

}



var preFrameW = '160,*';

var FrameHide = 0;



function ChangeMenu(way){

var addwidth = 10;

var fcol = top.document.all.bodyFrame.cols;

if(way==1) addwidth = 10;

else if(way==-1) addwidth = -10;

else if(way==0){

if(FrameHide == 0){

preFrameW = top.document.all.bodyFrame.cols;

top.document.all.bodyFrame.cols = '0,*';

FrameHide = 1;

return;

}else{

top.document.all.bodyFrame.cols = preFrameW;

FrameHide = 0;

return;

}

}

fcols = fcol.split(',');

fcols[0] = parseInt(fcols[0]) + addwidth;

top.document.all.bodyFrame.cols = fcols[0]+',*';

}



function resetBT(){

if(preID>0) document.getElementById("d"+preID).className = 'bdd';

preID = 0;

}

function changeLang(sel){

window.parent.location.href = "index.asp?id="+sel.options[sel.selectedIndex].value;

}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表