迅雷下载链接生成
下面是設置迅雷專用下載鏈接的JAV代碼
JAV代碼:
<!-- JavaScript專用鏈代碼 -->
<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>
<script src="http://pstatic.xunlei.com/js/base64.js"></script>
<script language="javascript">
var thunder_url = "http://請改成你需要的鏈接.rar";
var thunder_pid = "57029";
var restitle = "";
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> ');
</script>
JAV代碼效果:?迅雷專用高速下載
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="57029" thunderHref="<%=thunderUrl%>">迅雷專用高速下載</A>
JSP代碼效果:?迅雷專用高速下載
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="57029" thunderHref="<%=thunderUrl%>">迅雷專用高速下載</A>
ASP代碼效果:?迅雷專用高速下載
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="57029" thunderHref="<?php echo $thunderUrl;?>">迅雷專用高速下載</A>
PHP代碼效果:?迅雷專用高速下載
論壇專用鏈接代碼:
<!-- 論壇專用鏈代碼 -->
<SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT>
<SCRIPT src="js/base64.js"></SCRIPT>
<SCRIPT language=javascript>?
var thunderPath = "";
var thunderPid = "57029";?
</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="57029" thunderType="" thunderResTitle="" onClick="return OnDownloadClick_Simple(this,2,4)" οncοntextmenu="ThunderNetwork_SetHref(this)" >迅雷專用高速下載</a>
ASP.NET代碼效果:?" thunderPid="57029" thunderType="" thunderResTitle="" onClick="return OnDownloadClick_Simple(this,2,4)" οncοntextmenu="ThunderNetwork_SetHref(this)" >迅雷專用高速下載
總結
- 上一篇: 备忘录:PC(win7 64位)读取雷电
- 下一篇: 拯救2K屏手机!修改屏幕分辨率省电教程