<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title><script src="js/jquery-1.11.0.js"></script><script>//取随机数function sj(i) {//x上限,y下限 var x = 100;var y = 0;var rand = parseInt(Math.random() * (x - y + 1) + y);if(i==1){$("#t1").val($("#t1").val()+" "+rand);}else if(i==2){$("#t2").val($("#t2").val()+" "+rand);}else if(i==3){$("#t3").val($("#t3").val()+" "+rand);}else if(i==4){$("#t1").val("");$("#t2").val("");$("#t3").val("");}}$(function(){$("#btn").click(function(){for(var i=0;i<6;i++){sj(1);}});$("#btn2").click(function(){for(var i=0;i<6;i++){sj(2);}});$("#btn3").click(function(){for(var i=0;i<6;i++){sj(3);}});$("#emt").click(function(){sj(4);});});</script></head><body><div style="border: #F21F2B solid 2px;width: 30%;height: 300px;margin: auto;"><div><img src="img/new%20image%20-%205vwqr.jpg" style="width: 100px;"/></div><div><h3 align="center">简易福彩投注程序</h3></div><div style="height: 100px;width: 319px;margin: auto;"><div style="float: left;">彩票号码:<input type="text" id="t1"> <input type="button" value="投注" id="btn"><br />彩票号码:<input type="text" id="t2"> <input type="button" value="投注" id="btn2"><br />彩票号码:<input type="text" id="t3"> <input type="button" value="投注" id="btn3"><br /></div><div style="float: left;"><input type="button" value="清空" style="height: 73px;" id="emt"/></div></div></div></div></body>
</html>