国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

如何在ASP里顯示進度條?

2020-06-19 13:41:10
字體:
來源:轉載
供稿:網(wǎng)友

response.buffer=true

' 應用緩存技術.

dim lostnum

' 防止dmax過大而dstep過小.

dim shownum

delayshow(dstep,dmax)

sub delayshow(dstep,dmax)

' dmax表示要處理多少dmax()才能完成全過程,dstep表示已處理的占全過程的大致百分比.

 

dim total

' 顯示所有畫面.

dim dtemp

' 過渡變量.

total=100

dtemp=dstep

dstep=dstep+lostnum

 

if (dstep*total)/dmax<1 then

' 當畫面連1%都沒有時,則不畫,同時用變量lostnum存放未畫的總數(shù),便于下次調用本過程時繼續(xù).

 

lostnum=lostnum+dtemp

else

for ccc=1 to  fix((dstep*total)/dmax)

' 取整數(shù).

 

Response.Flush

 

shownum=shownum+fix((dstep*total)/dmax)

lostnum=0

' 顯示緩存里的圖片,變量shownum用于存放目前已畫的圖片.

end if

end sub

 

sub showlost()

for ccc=1 to (100-shownum)

Response.Write ("<img src=""suifengqiwu/images/delay1.jpg"">")    

' 如果取余造成不能畫完100,showlost()將余下未畫的顯示為已處理.

next

Response.Write "<BR>"

Response.Flush

end sub

 

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 长丰县| 南通市| 虹口区| 柘城县| 甘孜| 青阳县| 中宁县| 河曲县| 淮滨县| 西乌珠穆沁旗| 昌吉市| 德令哈市| 开原市| 清水河县| 屏东市| 嘉义市| 洞头县| 西乌| 博客| 新闻| 衡南县| 洛阳市| 广安市| 南乐县| 金坛市| 北辰区| 浦东新区| 和硕县| 北宁市| 永仁县| 漠河县| 贵定县| 金阳县| 北安市| 涿鹿县| 安西县| 永宁县| 定远县| 垣曲县| 北流市| 江西省|