下面是设置迅雷专用下载链接的JAV代码
Javascript代码:
1 <!-- JavaScript专用链代码 --> 2 3 <script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script> 4 <script src="http://pstatic.xunlei.com/js/base64.js"></script> 5 <script language="javascript"> 6 var thunder_url = "http://请改成你需要的链接.rar"; 7 var thunder_pid = "52345834"; 8 var restitle = ""; 9 document.write('<a href="#" thunderHref="' + ThunderEncode(thunder_url) + '" thunderPid="' + thunder_pid + '" thunderResTitle="' + restitle + '" onClick="return OnDownloadClick_Simple(this,2,4)" οncοntextmenu="ThunderNetwork_SetHref(this)">迅雷专用高速下载</a> '); 10 </script>
JSP代码:
<!-- JSP专用链代码一 --> <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT> <%@include file="base64.jsp"%><% String thunderUrl = ThunderEncode("http://,请改成你需要的链接.rar"); %><A οncοntextmenu=ThunderNetwork_SetHref(this) οnclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="下载资源名" thunderType="" thunderPid="52345834" thunderHref="<%=thunderUrl%>">迅雷专用高速下载</A>
ASP代码:
<!-- ASP专用链代码一 --> <!--#include file="base64.asp"--> <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT> <% Dim thunderUrl thunderUrl = ThunderEncode("http://请改成你需要的链接.rar") %><A οncοntextmenu=ThunderNetwork_SetHref(this) οnclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="下载资源名" thunderType="" thunderPid="52345834" thunderHref="<%=thunderUrl%>">迅雷专用高速下载</A>
PHP代码:
<!-- PHP专用链代码一 --> <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT> <?php require("encode.inc"); ?> <?php $thunderUrl = ThunderEncode("http://请改成你需要的链接.rar"); ?> <A οncοntextmenu=ThunderNetwork_SetHref(this) οnclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="下载资源名" thunderType="" thunderPid="52345834" thunderHref="<?php echo $thunderUrl;?>">迅雷专用高速下载</A>
论坛专用链接代码:
<!-- 论坛专用链代码 --> <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT> <SCRIPT src="js/base64.js"></SCRIPT> <SCRIPT language=javascript> var thunderPath = ""; var thunderPid = "52345834"; </SCRIPT> <SCRIPT src="js/thunderForum.js"></SCRIPT>
ASP.NET代码:
<!-- Asp.net专用链代码--> <script runat=server> public string ThunderEncode(string code) { code="AA"+code+"ZZ"; string encode = ""; byte[] bytes = Encoding.GetEncoding(54936).GetBytes(code); try { encode = Convert.ToBase64String(bytes); } catch { encode = code; } return "thunder://"+encode; } </script> <script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script> <a href="#" thunderHref="<%=ThunderEncode("http://请改成你需要的链接.rar")%>" thunderPid="52345834" thunderType="" thunderResTitle="" onClick="return OnDownloadClick_Simple(this,2,4)" οncοntextmenu="ThunderNetwork_SetHref(this)" >迅雷专用高速下载</a>