最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

如何隨機顯示圖片計數(shù)器?

 更新時間:2006年11月16日 00:00:00   作者:  

count.asp
html
head
meta http-equiv="Content-Type"
content="text/html; charset=gb2312"

title>隨風起舞之千變計數(shù)器</title
/head
body
p
%
dim out
countfile=server.mappath("aspcount.txt")
set objfile=server.createobject("scripting.filesystemobject")

' 定義一個服務(wù)器組件.
set out=objfile.opentextfile(countfile,1,false,false)
counter=out.readline

' 讀取數(shù)據(jù).
out.close
set objfile=server.createobject("scripting.filesystemobject")
set out=objfile.createtextfile(countfile,trUE,FALSE)
application.lock

' 暫時鎖定.
counter=counter+1

' 訪客次數(shù)加1.
out.writeline(counter)

' 寫入數(shù)據(jù).
application.unlock

' 解鎖.
out.close
%

script language="javascript"
function countdisp(countvar){
var countvar1="000000"+countvar;

' 實現(xiàn)隨機顯示,不足6位以0補全.
var howFar1=countvar1.length;
countvar1=countvar1.substring(howFar1, howFar1-1)
var index=""+Math.floor(Math.random()*10);
if (index=="10"){
index="0"};
for (var icount=0;icount
6;icount++{
var g=countvar1.substring(icount,icount+1);
document.images[icount].src="http://
localhost/images/"+index+g+".gif";
}

/script></p
!--預(yù)載圖像數(shù)組--
您是第<img src="http://localhost/images/00.gif" height=20 width=20
img src="http://localhost/images/00.gif" height=20 width=20
img src="http://localhost/images/00.gif"height=20 width=20
img src="http://localhost/images/00.gif"height=20 width=20
img src="http://localhost/images/00.gif"height=20 width=20
img src="http://localhost/images/00.gif"height=20 width=20>位訪問者!
script language="javascript"
count(counter);

' 調(diào)用count()函數(shù),實現(xiàn)計數(shù)器的動態(tài)圖像顯示.
/script
/body
/html

[1]

相關(guān)文章

最新評論

昌都县| 原平市| 康马县| 永顺县| 读书| 佛坪县| 宁都县| 临沧市| 安岳县| 清丰县| 静安区| 丰镇市| 刚察县| 西和县| 蓝田县| 泸溪县| 康乐县| 永济市| 聊城市| 区。| 垦利县| 宜川县| 云林县| 浪卡子县| 甘孜| 休宁县| 特克斯县| 武山县| 麟游县| 新兴县| 武威市| 威远县| 三亚市| 白城市| 石嘴山市| 阿瓦提县| 武平县| 达拉特旗| 南京市| 望江县| 温泉县|