DedeCMS添加半迅雷化[迅雷下载专用链接

2017-04-13 14:27:26 dedecms

DedeCMS添加半迅雷化[迅雷下载专用链接],原来的地址仍然会显示,不利于隐藏真实下载地址,真实下载地址可直接通过源文件看到

修改方法:

1、找到/templets/system/channel/channel_downlinks.htm文件,添加如下代码:

<script language="javascript">

var thunder_url = "~link~";

var thunder_pid = "06136";

var restitle = "";

document.write('<a href="#" thunderHref="' + ThunderEncode(thunder_url) + '" thunderPid="' + thunder_pid + '" thunderResTitle="' + restitle + '" onClick="return OnDownloadClick_Simple(this,2,4)" oncontextmenu="ThunderNetwork_SetHref(this)">迅雷专用高速下载</a> ');

</script>

2、加/templets/plus/download_links_templet.htm文件

<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>

<script src="http://pstatic.xunlei.com/js/base64.js"></script>