哪位大虾帮小弟看看这段代码呀。
<html><head>
<title>Needless</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="./style.css">
</head>
<body alink="gold" background="./dot.gif" bgcolor="#000000" link="gold" text="#008000" vlink="#00c000">
<center>
<table border="0">
</table>
<table width="668" border="0" cellpadding="3" cellspacing="3" class="main">
<tr>
</tr>
<tr><td>
<center><h1>Needless</h1></center>
<br>
<div style="align:left;margin-left:20px;font-size: 15px;font-family:'Courier New'">
<br>
<font color='red'>Key Words:</font>Nothing<br>
<br><br>
<div style="margin-left:50px;color: #00ff00">
<br>
<form name="doit" action="javascript:b()">
<p align="center">
<input type="text" name="number" maxlength="20" size="20">
<input type="submit" value="OK">
<br>
</form>
<font >请输入一个六位数的数字.<br><br>记住,你要的是"Key"而非其它!</font>
</center>
<script language="javascript">
var chr = "278330|278369|278317|278386|278313|278382|278367|278313|278375|278382|278365|278381|278369|278317|278340|278366|278386|278323|278297|278348|278365|278349|278308|278322|278300|278321|278314|278339|278364|278298|278329|278316|278317|";
var str = "";
function a( arg )
{
var i,k;
i = "";
for( k = 0; k < chr.length; k ++ )
{
if( chr.charAt(k) == '|' )
{
i -= arg;
str += String.fromCharCode(i);
i = "";
}
else
{
i += chr.charAt(k);
}
}
}
function b()
{
str = "";
a( doit.number.value );
alert( str );
}
</script>
</div>
</table><br>
<br><br>
</table>
<br>
<br>
</center>
</body>
</html>
本人纯色小白,望大虾帮我看看中间那么长一段数字代码 是 怎么翻译的 。
多谢啊!