Ecshop去掉模版中随机出现Ecshop版权的方法

EC如果是免费用户用的话,模版里面会随机出现 powered by ecshop 的字样,看了一下原来是在COMMON.JS里面写的一段代码,删除掉就可以解决掉了,方法如下:

打开  js/common.js    

找到以下代码:onload = function()

 1 onload = function()
 2 {
 3     var link_arr = document.getElementsByTagName(String.fromCharCode(65));
 4     var link_str;
 5     var link_text;
 6     var regg, cc;
 7     var rmd, rmd_s, rmd_e, link_eorr = 0;
 8     var e = new Array(97, 98, 99,
 9                       100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
10                       110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
11                       120, 121, 122
12                       );
13 
14   try
15   {
16     for(var i = 0; i < link_arr.length; i++)
17     { 
18       link_str = link_arr[i].href;
19       if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, e[18], e[7], e[14], 
20                                              e[15], 46, 99, 111, e[12])) != -1)
21       {
22         if ((link_text = link_arr[i].innerText) == undefined)
23         {
24             throw "noIE";
25         }
26         regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
27         if ((cc = regg.exec(link_text)) != null)
28         {
29           if (link_arr[i].offsetHeight == 0)
30           {
31             break;
32           }
33           link_eorr = 1;
34           break;
35         }
36       }
37       else
38       {
39         link_eorr = link_eorr ? 0 : link_eorr;
40         continue;
41       }
42     }
43   } // IE
44   catch(exc)
45   {
46     for(var i = 0; i < link_arr.length; i++)
47     {
48       link_str = link_arr[i].href;
49       if (link_str.indexOf(String.fromCharCode(e[22], 119, 119, 46, e[4], 99, 115, 104, e[14], 
50                                                e[15], 46, 99, 111, e[12])) != -1)
51       {
52         link_text = link_arr[i].textContent;
53         regg = new RegExp(String.fromCharCode(80, 111, 119, 101, 114, 101, 100, 46, 42, 98, 121, 46, 42, 69, 67, 83, e[7], e[14], e[15]));
54         if ((cc = regg.exec(link_text)) != null)
55         {
56           if (link_arr[i].offsetHeight == 0)
57           {
58             break;
59           }
60           link_eorr = 1;
61           break;
62         }
63       }
64       else
65       {
66         link_eorr = link_eorr ? 0 : link_eorr;
67         continue;
68       }
69     }
70   } // FF
71 
72   try
73   {
74     rmd = Math.random();
75     rmd_s = Math.floor(rmd * 10);
76     if (link_eorr != 1)
77     {
78       rmd_e = i - rmd_s;
79       link_arr[rmd_e].href = String.fromCharCode(104, 116, 116, 112, 58, 47, 47, 119, 119, 119,46, 
80                                                        101, 99, 115, 104, 111, 112, 46, 99, 111, 109);
81       link_arr[rmd_e].innerHTML = String.fromCharCode(
82                                         80, 111, 119, 101, 114, 101, 100,38, 110, 98, 115, 112, 59, 98, 
83                                         121,38, 110, 98, 115, 112, 59,60, 115, 116, 114, 111, 110, 103, 
84                                         62, 60,115, 112, 97, 110, 32, 115, 116, 121,108,101, 61, 34, 99,
85                                         111, 108, 111, 114, 58, 32, 35, 51, 51, 54, 54, 70, 70, 34, 62,
86                                         69, 67, 83, 104, 111, 112, 60, 47, 115, 112, 97, 110, 62,60, 47,
87                                         115, 116, 114, 111, 110, 103, 62);
88     }
89   }
90   catch(ex)
91   {
92   }
93 }

然后再打开模板文件夹的 library/page_footer.lbi
删除 {foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}
这样的话,在模版页面里面也不会随机出现版权的问题了

posted @ 2013-12-02 17:04  秋月白  阅读(387)  评论(0编辑  收藏  举报