<meta charset="utf-8" & gt;
The function CheckSubmit () {
R1=Math. Round (Math. The random () * 33 + 1);
R2=Math. Round (Math. The random () * 33 + 1);
R3=Math. Round (Math. The random () * 33 + 1);
R4=Math. Round (Math. The random () * 33 + 1);
R5=Math. Round (Math. The random () * 33 + 1);
R6=Math. Round (Math. The random () * 33 + 1);
B1=Math. Round (Math. The random () * 16 + 1);
Red1=document. GetElementById (" red1 "). The value;
Red2=document. GetElementById (' red2). The value;
Red3=document. GetElementById (' red3). The value;
Red4=document. GetElementById (' red4). The value;
Red5=document. GetElementById (' red5). The value;
Red6=document. GetElementById (' red6). The value;
Blue=document. GetElementById (" blue "). The value;
Int what zj had=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 (what zj had==6 & amp; & ZJJ=1) {
Alert (" congratulations, you won first prize!" );
}
If (what zj had==6 & amp; & ZJJ==0) {
Alert (" congratulations, won the second prize!" );
}
If (what zj had==5 & amp; & ZJJ==1) {
Alert (" congratulations, won the third prize!" );
}
If (what zj had + ZJJ==5) {
Alert (" congratulations, zhong wanxie won!" );
}
If (what zj had + ZJJ==4) {
Alert (" congratulations, and got a five place!" );
}
If ((what zj had + ZJJ==3) | | (what zj had + ZJJ==2) | | (what zj had + ZJJ==1) {
Alert (" congratulations, and got a six place!" );
}
If (what zj had + ZJJ==0) {
Alert (" didn't get your hair!" );
}
}
</script>
<style>
H2, p {
Margin - left: 200 px;
}
The a1 {
Margin - left: 85 px;
}
The button {
Margin - left: 200 px;
Background: RGB (81, 187, 125);
color: white;
}
Input {
width: 100px;
Height: 20 px;
}
</style>
<body>
1. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
2. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
3. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
4. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
5. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
6. Please enter the red ball number (number in 1-33) : & lt; Span & gt;
7. Please enter the blue ball number (number in 1-16) : & lt; Span & gt;