7,785
社区成员




Sub Initprogress()
Set objExplorer = WScript.Createobject("InternetExplorer.Application")
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width=400
objExplorer.Height = 110
objExplorer.Left = 312
objExplorer.Top = 320
Do While (objExplorer.Busy)
Wscript.Sleep 200
Loop
objExplorer.Visible = 1
End Sub
Sub Endprogress()
WScript.Sleep 500
objExplorer.Quit
Set objExplorer=Nothing
End Sub
While(intPercent<100)
intPercent=intPercent+1
Call Inttoprogress(intPercent,intPercent)
Wend
endProgress
Sub Inttoprogress(intPercentValue,str)
Dim sTable
sTable="<table boder='0' width='100%'><tr><td width='85%'>"
sTable=sTable &"<table border='1' width='100%' cellspacing='0' bordercolorlight='#0' bordercolordark='#0'><tr><td>"
sTable=sTable & "<table border='0' width='" & Cstr(intPercentValue) &"%'bgcolor='#0000ff'>"
sTable=sTable & "<tr><td width='100%'> </td></tr></table></td></tr></table></td><td width='15%'><font color='#000fFF' size='4'>"
sTable=sTable & str &"</td></tr></table>"
objexplorer.Document.body.innerHTML=sTable
End Sub