网页调用迅雷下载文件
2013-09-15 16:09
267 查看
下面是设置迅雷专用下载链接的JAV代码
Javascript代码:
JSP代码:
ASP代码:
PHP代码:
论坛专用链接代码:
ASP.NET代码:
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://请改成你需要的链接.rar"; var thunder_pid = "52345834"; 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>
JSP代码:
<!-- JSP专用链代码一 --> <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT> <%@include file="base64.jsp"%><% String thunderUrl = ThunderEncode("http://,请改成你需要的链接.rar"); %><A oncontextmenu=ThunderNetwork_SetHref(this) onclick="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 oncontextmenu=ThunderNetwork_SetHref(this) onclick="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 oncontextmenu=ThunderNetwork_SetHref(this) onclick="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)" oncontextmenu="ThunderNetwork_SetHref(this)" >迅雷专用高速下载</a>
相关文章推荐
- 使用C#调用旋风、快车及迅雷下载文件
- VB.NET编程调用迅雷下载文件
- 按键精灵调用迅雷下载文件
- 自动化迅雷下载文件(vbs脚本)调用迅雷api
- VB.NET编程调用迅雷下载文件
- VB.NET编程调用迅雷下载文件
- WebView使用(内存泄露+获取网页标题+js交互+调用浏览器下载文件+网页加载失败+清缓存)
- VB.NET编程调用迅雷下载文件
- 网页调用迅雷下载
- 自动化迅雷下载文件(vbs脚本)调用迅雷api
- 转载 VB.NET编程调用迅雷下载文件
- 转载 VB.NET编程调用迅雷下载文件(1)
- Web页面中调用迅雷进行单文件和批量下载
- VC++调用迅雷下载文件
- 在网页文件中调用CSS文件
- Xutils源码文件下载方法的调用流程
- 调用百度云Api实现从百度云盘自动下载文件
- C#调用迅雷的时候 自动模拟点击”下载按钮” 关闭弹出窗口
- 利用Register protocol实现网页调用桌面程序(类似迅雷、QQ等)
- [易语言] 百宝云+迅雷引擎:满速、直链下载文件!