下载文件(弹出迅雷来下载)

曾祥展

 

例子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
posted @ 2010-01-16 13:13  曾祥展  阅读(8139)  评论(0编辑  收藏  举报