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

王朝asp·作者佚名  2006-12-16
窄屏简体版  字體: |||超大  

<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>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航