欧美国产另类久热|951超碰伊人久久|伊人影视久久久久|色婷婷亚洲小电影|色东京热69XX|婷婷玖玖深爱网|加勒比东京热网站|无码A级毛片在线观看|一级a毛一级a看|中文字幕人妻欧美

如何在ASP里顯示進度條?
來源:易賢網(wǎng) 閱讀:3147 次 日期:2014-08-09 15:22:51
溫馨提示:易賢網(wǎng)小編為您整理了“如何在ASP里顯示進度條?”,方便廣大網(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 tofix((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

更多信息請查看IT技術專欄

更多信息請查看網(wǎng)絡編程
易賢網(wǎng)手機網(wǎng)站地址:如何在ASP里顯示進度條?
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)