⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 -

📁 Ajax实现的WEB下载,由于OA系统是基于WEB方式的
💻
字号:
引用activex
<object  classid ="clsid:27AEE2AD-4451-4FB7-BA27-2D2CAD155E58" codebase ="ReYoWebDownLoad.CAB#version=213,1219,0,568" id="ReYoWebDL" width="0" height="0"></object>

调用参数
<script language=vbscript>

function StartDownloada()

	ReYoWebDL.copyright="锐洋软件拥有版权 www.interdrp.com"
	ReYoWebDL.url="http://dl.baofeng.com/storm3/Storm2009-0504-1.exe"
	ReYoWebDL.path =""  
	ReYoWebDL.ReYoStartDownload()  
	if ReYoWebDL.path<>"" then
		msgwait()
		a()
	end if 

end function

function StartDownloadb()

	ReYoWebDL.copyright="锐洋软件拥有版权 www.interdrp.com"
	ReYoWebDL.url="http://dl.baofeng.com/storm3/Storm2009-0504-1.exe"
	ReYoWebDL.path ="c:\Storm2009-0504-1.exe"  
	ReYoWebDL.ReYoStartDownload()  
	msgwait()
	a()

end function

function CancleDownload()

	ReYoWebDL.ReYoStopDownload()

end function

function a()

 	if ReYoWebDL.cancle then

		msgfalse()
		exit function

 	else
		if ReYoWebDL.done then

			msgsuccess()
  			ReYoWebDL.done=false
  			ReYoWebDL.bytes=0 
		else
			msgdoing()
			settimeout "a()",1000		
		end if

 	end if

end function

</script>

API说明

 ReYoWebDL.copyright="锐洋软件拥有版权 http://www.interdrp.com/"  //必须
 ReYoWebDL.url="http://dl.baofeng.com/storm3/Storm2009-0504-1.exe" //下载文件的路径
 ReYoWebDL.path =""  //保存文件地址
 ReYoWebDL.ReYoStartDownload()  //下载动作
 ReYoWebDL.ReYoStopDownload() //停止下载
 ReYoWebDL.size //下载文件大小
 ReYoWebDL.bytes//已下载大小
 ReYoWebDL.speed //下载速度 KB/S
 ReYoWebDL.done //下载是否完成
 ReYoWebDL.cancle=true; //是否取消下载
 ReYoWebDL.urlsource //下载文件名
 ReYoWebDL.percent //下载百分比


请浏览
http://www.cnblogs.com/interdrp/archive/2009/04/27/1444377.html

官方网址 www.interdrp.com  联系QQ:9866184

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -