zoukankan      html  css  js  c++  java
  • 下载文件(弹出迅雷来下载)

    曾祥展

    例子1:

    <A oncontextmenu=ThunderNetwork_SetHref(this) onclick="return OnDownloadClick_Simple(this,2)" href="#" thunderResTitle="" thunderType="" thunderPid="32452" thunderHref="thunder://QUFodHRwOi8veHVubGVpLmdyZWVuZG93bi5jbjo4MDg4Ly8yMDEwMDEvcXF3cnkucmFyWlo=">迅雷下载</A>

    例子2-1:

    <script language="javascript"> 
    var thunder_url = "http://soft1.wmzhe.com/download/200902/PowerWord_2009_SP2.rar"; 
    var thunder_pid = ""; 
    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)" title="金山词霸2009SP2牛津版">迅雷专用高速下载1</a> '); 
    </script>

    例子2-2:

    <A oncontextmenu=ThunderNetwork_SetHref(this) title=金山词霸2009SP2牛津版 onclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="金山词霸2009 " thunderPid="" thunderHref="thunder://QUFodHRwOi8vc29mdDEud216aGUuY29tL2Rvd25sb2FkLzIwMDkwMi9Qb3dlcldvcmRfMjAwOV9TUDIucmFyWlo=" mce_href="#">迅雷专用高速下载2</A>

    JS:

    <SCRIPT src="http://pstatic.xunlei.com/js/webThunderDetect.js"></SCRIPT>
    <SCRIPT src="http://pstatic.xunlei.com/js/base64.js"></SCRIPT>

    请看效果:

    例子1: 迅雷下载
    例子2-1:
    例子2-2: 迅雷专用高速下载2
  • 相关阅读:
    Linux常用操作命令总结
    Centos7安装FastDFS教程
    Permutation Sequence
    Next Permutation
    Remove Element
    4Sum
    3Sum Closest
    3Sum
    Longest Consecutive Sequence
    Median of Two Sorted Arrays
  • 原文地址:https://www.cnblogs.com/zengxiangzhan/p/1649116.html
Copyright © 2011-2022 走看看