<HTML>
<HEAD>
<TITLE>蛙蛙牌七星彩算号器</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="蛙蛙王子">
<SCRIPT LANGUAGE="JavaScript">
<!--
function makeRandChar(chars,marklen)
{
var tmpstr = '';
var chrlen = chars.length;
var iRandom ;
do{
iRandom = Math.round(Math.random() * chrlen);
tmpstr += chars.charAt(iRandom);
if( tmpstr.length == marklen ) break;
}while (tmpstr.length < marklen)
return tmpstr;
}
function suanhao()
{
var randLength = 7;
var randStr = "1234567890";
var result = makeRandChar(randStr, randLength);
Result.value = result;
divHistory.innerText = result + "\r\n" + divHistory.innerText;
return false;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="text" NAME="Result">
<INPUT TYPE="button" value="算号" onclick="return suanhao()">
<div id="divHistory">
</BODY>
</HTML>