<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript">
function CheckSubmit( ){
r1=Math.round(Math.random()*33+1);
r2=Math.round(Math.random()*33+1);
r3=Math.round(Math.random()*33+1);
r4=Math.round(Math.random()*33+1);
r5=Math.round(Math.random()*33+1);
r6=Math.round(Math.random()*33+1);
b1=Math.round(Math.random()*16+1);
red1=document.getElementById('red1').value;
red2=document.getElementById('red2').value;
red3=document.getElementById('red3').value;
red4=document.getElementById('red4').value;
red5=document.getElementById('red5').value;
red6=document.getElementById('red6').value;
blue=document.getElementById('blue').value;
int zj=0;
int zjj=0;
if(red1==r1||red1==r2||red1==r3||red1==r4||red1==r5||red1==r6){
zj++;
}
if(red2==r1||red2==r2||red2==r3||red2==r4||red2==r5||red2==r6){
zj++;
}
if(red3==r1||red3==r2||red3==r3||red3==r4||red3==r5||red3==r6){
zj++;
}
if(red4==r1||red4==r2||red4==r3||red4==r4||red4==r5||red4==r6){
zj++;
}
if(red5==r1||red5==r2||red5==r3||red5==r4||red5==r5||red5==r6){
zj++;
}
if(red6==r1||red6==r2||red6==r3||red6==r4||red6==r5||red6==r6){
zj++;
}
if(blue==b1){
zjj++;
}
if(zj==6&&zjj=1){
alert("恭喜您,获得了一等奖!");
}
if(zj==6&&zjj==0){
alert("恭喜您,获得了二等奖!");
}
if(zj==5&&zjj==1){
alert("恭喜您,获得了三等奖!");
}
if(zj+zjj==5){
alert("恭喜您,获得了四等奖!");
}
if(zj+zjj==4){
alert("恭喜您,获得了五等奖!");
}
if((zj+zjj==3)||(zj+zjj==2)||(zj+zjj==1)){
alert("恭喜您,获得了六等奖!");
}
if(zj+zjj==0){
alert("您毛儿都没得到!");
}
}
</script>
<title>双色球</title>
<style>
h2,p{
margin-left: 200px;
}
.a1{
margin-left: 85px;
}
button{
margin-left: 200px;
background: rgb(81, 187, 125);
color: white;
}
input{
width: 100px;
height: 20px;
}
</style>
</head>
<body>
<form name="form" action="" method="post">
<h1>***************************欢迎来到中国福彩双色球******************************</h1>
<h2>请输入你想要的双色球的号码:</h2>
<p>1.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red1" ></span></p>
<p>2.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red2"></span></p>
<p>3.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red3"></span></p>
<p>4.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red4"></span></p>
<p>5.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red5"></span></p>
<p>6.请输入红色球号码(号码在1-33中选): <span class="a1" ><input type="text" id="red6"></span></p>
<p>7.请输入蓝色球号码(号码在1-16中选): <span class="a1" ><input type="text" id="blue"></span></p>
<p><input name="button" type="submit" value="确认" onClick="return CheckSubmit( );"></p>
</form>
</body>
</html>