<HTML>
<Title> simulated Lucky Draw-51windows. Net </title>
<Head>
<Meta name = "keywords" content = "51windows. Net">
<Meta http-equiv = Content-Type content = "text/html; charset = gb2312">
</Head>
<Body>
<Script language = "JavaScript">
VaR alldata = "kuhanzhu, blueidea, csdn, Google, Baidu, MSN, QQ, CCTV, Microsoft, Adobe, aspsky" // name of the lottery, separated
VaR alldataarr = alldata. Split (",")
VaR num = alldataarr. Length-1
VaR Timer
Function Change (){
Document. getelementbyid ("oknum"). value = alldataarr [getrnd (0, num)];
}
Function start (){
Clearinterval (timer );
Timer = setinterval ('change () ', 10); // 50 (milliseconds) indicates the conversion interval. The smaller the value, the faster the conversion.
}
Function OK (){
Clearinterval (timer );
}
function getrnd (Min, max) {
return parseint (math. random () * (max-min + 1);
}< br>
simulated Lucky Draw:
Start ( S )
stop ( O )