设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP

Asp初学者常见问题之六用VS生成水印

作者:佚名 出处:网络转载 时间:12-25 点击:

内容载入中...
<script language="VBScript">

Function addCopy(num)
Dim ranValue, i, resultChr
resultChr = ""
for i = 1 to num
Randomize
ranValue = (9 - 0) * rnd * 10
resultChr = resultChr&Chr(ranValue)
Next
addCopy = "<font color='#FFFFFF'>&copy; this code writen by 帅青蛙(www.LemongTree.Net),&nbsp;&nbsp;&nbsp;"&resultChr &" </font>"
End Function

Function replaceBR(fstring)
If fstring = "" Or IsNull(fstring) Then
replaceBR = ""
Else
//replaceBR = replaceBR&replace(fstring, chr(10), "<br>" &amp; addCopy(3))
replaceBR = replaceBR &fstring & "<br>" &addCopy(3)
End If
End Function
for i = 1 to 3
document.write replaceBR("This code writen by 帅青蛙, you can use it free, but please keep this copyright!")
document.write ("<br>")
next
</script>

收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息