当前位置: 首页 > 图文教程 > 脚本技术 > VBScript > 海阳顶端网进百度blog必须输入密码的vbscript代码

VBScript
VBS教程:函数-LoadPicture 函数
VBS教程:函数-Len 函数
VBS教程:函数-Left 函数
VBS教程:函数-LCase 函数
VBS教程:函数-LBound 函数
VBS教程:函数-Join 函数
VBS教程:函数-IsObject 函数
VBS教程:函数-IsNumeric 函数
VBS教程:函数-IsNull 函数
VBS教程:函数-IsEmpty 函数
VBS教程:函数-IsDate 函数
VBS教程:函数-IsArray 函数
VBS教程:函数-Int、Fix 函数
VBS教程:函数-InStrRev 函数
VBS教程:函数-InStr 函数
VBS教程:函数-InputBox 函数
VBS教程:函数-Hour 函数
VBS教程:函数-Hex 函数
VBS教程:函数-GetRef 函数
VBS教程:函数-GetObject 函数

VBScript 中的 海阳顶端网进百度blog必须输入密码的vbscript代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 118 ::
收藏到网摘: n/a

要看懂下面的代码,需要了解下面的函数
vbscript strreverse 函数
返回字符串,此字符串与指定字符串顺序相反。
strreverse(string1)
string1 参数是要进行字符反向的字符串。如果 string1 是零长度字符串 (""),则返回零长度字符串。如果 string1 为 null,则会出现错误。
说明
下面的示例利用 strreverse 函数返回按相反顺序排列的字符串:
dim mystr
mystr = strreverse("vbscript") 'mystr 包含 "tpircsbv"。

复制代码 代码如下:

<script language=vbs>
function pass()
input=inputbox("请输入密码:","hello",,300,300)
if input=StrReverse("why?") then
location.href=StrReverse("tpircsbvym/moc.udiab.ih//:ptth")
else
MsgBox "error"
location.href=window.location.href
end if
end function
</script>

下面我们分析下上面的vbs代码,高手飘过吧
if input=StrReverse("why?") then 密码就是why?字符的反转,即密码为:"?yhw"