zoukankan      html  css  js  c++  java
  • 迅雷专用下载的几种代码

    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 = "57029";

    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代码:

    <!-- 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)" oncontextmenu="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://请改成你需要的链接.rar")

    %><A oncontextmenu=ThunderNetwork_SetHref(this) onclick="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://请改成你需要的链接.rar");

    ?><A oncontextmenu=ThunderNetwork_SetHref(this) onclick="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://请改成你需要的链接.rar")%>" thunderPid="57029" thunderType="" thunderResTitle="" onClick="return OnDownloadClick_Simple(this,2,4)" oncontextmenu="ThunderNetwork_SetHref(this)" >迅雷专用高速下载</a>

  • 相关阅读:
    使用pdm建表并生成SQL语句
    eclipse从svn检出项目之后,找不到BuildPath
    如何搞定SVN目录的cleanup问题和lock问题
    ORA-00923: 未找到要求的 FROM 关键字
    java.sql.SQLException: ORA-00911: 无效字符
    10.vue-router实现路由懒加载( 动态加载路由 )
    9、vue-router的两种模式(hash模式和history模式)的区别
    8、vue-router传递参数的几种方式
    5、vue-router有哪几种导航钩子( 导航守卫 )
    4.怎么定义 vue-router 的动态路由? 怎么获取传过来的值
  • 原文地址:https://www.cnblogs.com/yjung/p/1654389.html
Copyright © 2011-2022 走看看