[求助]vbscript問題
我要整個密碼既解碼器/編碼器,問號(?)既地方應打乜?先謝!<html>
<head></head>
<body>
<form id="myForm" style="font-size:24px">
<p>Input a sentence:
<input type="text" name="sentence" size="50" style="font-size:24px"
onKeyUp="setTimeout('doCipher()',1000)"></p>
<p><input type="button" value="Generate" style="font-size:24px"
onSubmit="doCipher()">
</p>
</form>
<hr border="1">
<table border=1 width=800 bgcolor="#CCCCC" style="font-size:24px">
<tr><td><span id=result>Waiting for input...</span></td></tr>
</table>
<script language=vbscript>
dim c,d,cipher,decipher
cipher="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
decipher="NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm"
sub doCipher()
c=cipher
d=decipher
str=myForm.sentence.value
resultStr=""
for i=1 to len(str)
pos=instr(c,mid(str,i,1))
if pos=0 then resultStr &????????????else resultStr=resultStr &????????????
next
document.getElementById("result").innerHTML=resultStr
end sub
</script>
</body></html>
[ 本帖最後由 tonsmallboy 於 2006-2-21 18:19 編輯 ]
頁:
[1]