本帖最后由 huqiu2 于 2019-7-22 17:58 编辑
[XHTML] 纯文本查看 复制代码
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript">
function jisuan(){
var code = document.form1.textfield.value;
for (var i = 0; i < 100; i++) {
var text = (code * 3).toString()
if (text.Length <= 12) {
code = parseInt(text);
} else {
code = text.substring(0, 12);
}
}
document.form2.textfield2.value = code;
}
</script>
<title>北&斗&PDF转换器-注册机</title>
</head>
<body>
<table width="332" border="1">
<tr>
<td width="141">机器码:</td>
<td width="175"><form id="form1" name="form1" method="post" action="">
<label>
<input type="text" value="1271721233" name="textfield" />
</label>
</form>
</td>
</tr>
<tr>
<td>注册码是:</td>
<td><form id="form2" name="form2" method="post" action="">
<label>
<input type="text" name="textfield2" />
</label>
</form>
</td>
</tr>
</table>
<input type="submit" name="Submit" value="提交">
</body>
</html> |