教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> VBscript >> VBScript的扫描进度条程序 RSS订阅
VBScript的扫描进度条程序
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
   <title>进度条</title>
<style>
BODY {background: #CCCCFF} BODY { overflow:hidden }
P.txtStyle {color: Navy; font-family: Verdana; font-size: 10pt; font-weight: bold; margin-left: 10px }
input.pbStyle {color: Navy; font-family: Wingdings; font-size: 10pt; background: Silver; height: 20px; width: 340px }
</style>
<div id="objProgress" class="Outer"></div>
<CENTER>
<b>
<SPAN id=txtMilestone class='txtStyle' style='margin-left: 10px'></SPAN>
<font color=green>
<SPAN id=txtRemarks class='txtStyle' style='margin-left: 10px'></SPAN>
</font>
<b>
<br>
<br>
<input type='text' id='pbText' class='pbStyle' value='' >
<br>
<br>
<input type='button' value='Cancel' onclick='SetReturnFlag("quit")' >
</CENTER>
<form name='secret' > <input type='hidden' name='pubFlag' value='run' ></form>
<SCRIPT LANGUAGE='VBScript' >
Sub SetReturnFlag(sFlag)
secret.pubFlag.Value = sFlag
txtMileStone.style.color = "Red"
txtRemarks.style.color = "Red"
End Sub
Function PctComplete(nPct)
pbText.Value = String(nPct," ") & String(4,"n")
End Function
Sub UpdateProgress()
Dim intStep
Dim intDirection

If (IsNull(objProgress.getAttribute("Step")) = True) Then
intStep = 0
Else
intStep = objProgress.Step
End If

if (IsNull(objProgress.GetAttribute("Direction"))=True) Then
intDirection = 0
Else
intDirection = objProgress.Direction
End If

if intDirection=0 then
intStep = intStep + 1
else
intStep = intStep - 1
end if

Call PctComplete(intStep)

if intStep>=23 then
intDirection=1
end if
if intStep<=0 then
intDirection=0
end if
objProgress.SetAttribute "Step", intStep
objProgress.SetAttribute "Direction", intDirection
Window.setTimeout GetRef("UpdateProgress"), 80
End Sub
Sub DialogHardTimeout()
SetReturnFlag("quit")
End sub
Sub Window_OnLoad()
theleft = (screen.availWidth - document.body.clientWidth) / 2
thetop = (screen.availHeight - document.body.clientHeight) / 2
window.moveTo theleft,thetop
Window.setTimeout GetRef("UpdateProgress"), 80
Window.setTimeout GetRef("DialogHardTimeout"), 3600000
End Sub
</SCRIPT>

来源:编程技术-十度教育
作者:
关键字:VBScript,扫描进度条程序
发表日期:2006-10-18 10:43:14

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:VBScript来控制ICF的启动   下一篇:VBScript实现对Windows注册表的修改


2008-8-22 7:13:40
本文的相类似文章
  • ASP页面内VBScript和JScript的交互
  • 使用vbscript自动配置IIS
  • 利用VBScript实现倒计时
  • 把VB的程序写成VBScript方式放在VBS文件中
  • VBScript怎样读取一个目录下的所有文件名到数组
  • VBScript编写“Happy Time欢乐时光”病毒
  • 用VBScript实现对Windows注册表的修改
  • 妙用VBScript自制IE工具栏按钮
  • 一个在vbscript中读取cookie的程序函数
  • vbscript判断email地址的合法性
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com