迅雷专用下载的几种代码
JavaScript代碼:
<!-- 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://請(qǐng)改成你需要的鏈接.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>
JSP代碼:
<!-- 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://請(qǐng)改成你需要的鏈接.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> ');
ASP代碼:
<!-- ASP專用鏈代碼一 --> <!--#include file="base64.asp"-->
<SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT>
<%
Dim thunderUrl thunderUrl = ThunderEncode("http://請(qǐng)改成你需要的鏈接.rar")
%><A οncοntextmenu=ThunderNetwork_SetHref(this) οnclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="下載資源名" thunderType="" thunderPid="57029" thunderHref="<%=thunderUrl%>">迅雷專用高速下載</A>
PHP代碼:
<!-- PHP專用鏈代碼一 -->
<SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT>
<?php require("encode.inc"); ?><?php
$thunderUrl = ThunderEncode("http://請(qǐng)改成你需要的鏈接.rar");
?><A οncοntextmenu=ThunderNetwork_SetHref(this) οnclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="下載資源名" thunderType="" thunderPid="57029" 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 = "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://請(qǐng)改成你需要的鏈接.rar")%>" thunderPid="57029" thunderType="" thunderResTitle="" onClick="return OnDownloadClick_Simple(this,2,4)" οncοntextmenu="ThunderNetwork_SetHref(this)" >迅雷專用高速下載</a>
轉(zhuǎn)載于:https://my.oschina.net/martin321/blog/1525319
總結(jié)
以上是生活随笔為你收集整理的迅雷专用下载的几种代码的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux异常,samba共享目录看不到
- 下一篇: Java 转换成ObjectC代码