asp代码求助 非常感谢 高手求助

来源:百度知道 编辑:UC知道 时间:2024/06/03 22:55:27
asp 顺序代码生成
在asp网页实现需要调用一下js
<script src='http://s7.xxxx.com/ad.asp?id=000000&id=000000></script>
<script src='http://s7.xxxx.com/ad.asp?id=000001&id=000001></script>
<script src='http://s7.xxxx.com/ad.asp?id=000002&id=000002></script>
<script src='http://s7.xxxx.com/ad.asp?id=000003&id=000003></script>
<script src='http://s7.xxxx.com/ad.asp?id=000004&id=000004></script>
<script s

<%
Function RndNum(MaxLen) '生成随机密码
Dim strNewPass
Dim whatsNext,upper,lower,intCounter
Randomize
For intCounter = 1 To maxLen
whatsNext = Int((1 - 0 + 1) * Rnd + 0)
upper = 57
lower = 49
strNewPass = strNewPass & Chr(Int((upper - lower + 1) * Rnd + lower))
Next
RndNum=strNewPass
End Function

rn = RndNum(6)

for i=1 to 6
ini = clng(rn)+i
%>
<script src='http://s7.xxxx.com/ad.asp?id=<%= ini %>&id=<%= ini %>'></script>
<% next %>

不行的话hi我

用COOKIE保存一下刚才的数字 然后刷新时读出加1 就可以实现了

<%
'如果用户下次访问不累计的话
UrlID=1
if(session("UrlID")<>"") then
session("UrlID")=right(cstr(1000000 + clng(sess