欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來到入門教程網(wǎng)!

vb

當(dāng)前位置:主頁 > 軟件編程 > vb >

用vbs模擬的一個asp的分頁顯示功能

來源:本站原創(chuàng)|時間:2020-01-10|欄目:vb|點(diǎn)擊: 次

剛做完1個項目,閑的無聊,想改改自己HomePage,但沒有Asp權(quán)限,所以突發(fā)奇想,用vbs模擬了一個圖片分頁顯示功能!由于寫的是適合自己使用的功能,難免很多地方不是很完善!也請各位路過的提些意見,若有朋友正好想找類似的功能,或許可以幫助一下,另外,祝論壇的每一位朋友元旦快樂!

復(fù)制代碼 代碼如下:

<script language=VBS>
Function showINDEXPAGE()
         JS=1
         webPath=window.location
         Do until Left(webPATH,1)="#" or JS=len(window.location)
                  JS=JS+1
                  webPATH=Right(window.location,JS)

         Loop
         if JS=len(window.location) then showINDEXPAGE=1 else showINDEXPAGE=Replace(webPATH,"#","")
END Function

QZ=""              '需要顯示的圖像文件前綴
HZ=".gif"          '需要顯示的圖像文件后綴
theMAX=98          '最大顯示圖像個數(shù)
theSKIP=5          '每行顯示多少圖像個數(shù)
thePAGE=20         '每頁顯示多少圖像個數(shù)

theINDEX=int(theMAX/thePAGE)
if theMAX mod thePAGE <> 0 then theINDEX=theINDEX+1

for i=1 to theINDEX
    showINDEX="<a href=#"&i&" onclick=window.location.reload()>"&"["&i&"]"&"</a> "
    document.write showINDEX
next
document.write "<br><br><hr>"

if thePAGE=0 then thePAGE=theMAX
for i=1 to thePAGE
    theNUM=i+thePAGE*(showINDEXPAGE()-1)
    if theNum>theMAX then EXIT FOR
    if theNUM<10 then
       temp="<img src="&QZ&"00"&theNUM&HZ&"></img>"     
    else if theNum<100 then
            temp="<img src="&QZ&"0"&theNUM&HZ&"></img>"
         else
            temp="<img src="&QZ&theNUM&HZ&"></img>"
         end if
    end if
    document.write temp
    if theSKIP<>0 then if i mod theSKIP = 0 then document.write "<br>"
next

document.write "<hr><br><br>"
for i=1 to theINDEX
    showINDEX="<a href=#"&i&" onclick=window.location.reload()>"&"["&i&"]"&"</a> "
    document.write showINDEX
next
</script>


[Ctrl+A 全選 注:如需引入外部Js需刷新才能執(zhí)行]

另:
取得#后面的內(nèi)容可以使用

replace(window.location.hash,"#","")

上一篇:運(yùn)行腳本之前,如何確定計算機(jī)上的默認(rèn)腳本宿主的代碼

欄    目:vb

下一篇:用vbs確定計算機(jī)是否有 USB 2.0 端口的代碼

本文標(biāo)題:用vbs模擬的一個asp的分頁顯示功能

本文地址:http://mengdiqiu.com.cn/a1/vb/7912.html

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有