Home > front end >  Bosses, help me see # there is something wrong with the double chromosphere of JavaScript code
Bosses, help me see # there is something wrong with the double chromosphere of JavaScript code

Time:04-30




<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>
The double chromosphere & lt;/title> <br/><br/><style> <br/>H2, p {<br/>Margin - left: 200 px; <br/>} <br/><br/>The a1 {<br/>Margin - left: 85 px; <br/>} <br/><br/>The button {<br/>Margin - left: 200 px; <br/>Background: RGB (81, 187, 125); <br/>color: white; <br/>} <br/><br/>Input {<br/>width: 100px; <br/>Height: 20 px; <br/>} <br/></style> <br/><br/></head> <br/><body> <br/><The form name="form" action="" method=" post "& gt; <br/><br/><H1 & gt; * * * * * * * * * * * * * * * * * * * * * * * * * * * welcome to China welfare lottery the double chromosphere * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * & lt;/h1 & gt; <br/><br/><The h2 & gt; Please enter the number you want the double chromosphere: & lt;/h2 & gt; <br/><br/><p> 1. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red1" & gt; </span> </p> <br/><p> 2. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red2 & gt;" </span> </p> <br/><p> 3. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red3 & gt;" </span> </p> <br/><p> 4. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red4 & gt;" </span> </p> <br/><p> 5. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red5 & gt;" </span> </p> <br/><p> 6. Please enter the red ball number (number in 1-33) : & lt; Span & gt; <Input type="text" id="red6 & gt;" </span> </p> <br/><p> 7. Please enter the blue ball number (number in 1-16) : & lt; Span & gt; <Input type="text" id="blue" & gt; </span> </p> <br/><p> <Input the name="button" type="submit" value="https://bbs.csdn.net/topics/confirmed" onClick="return CheckSubmit ();"> </p> <br/></form> <br/></body> <br/></html> </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/frontend/109871.html" target="_blank" style="color:#999">https//www.codepudding.com/frontend/109871.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/frontend/109870.html'>Node. Js installation failed</a></div> <div class="detail-arr-right">Next:<a href='/frontend/109872.html'>Vue modular development problems</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=JavaScript' target='_blank'>JavaScript</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul><li><a href="/Mobile/106172.html">For commercial real estate WeChat small program source code</a></li><li><a href="/other/100092.html">Whether you need Hexagon DSP SDK commercial license</a></li><li><a href="/other/70148.html">Excuse me docker can complete the simulation of a commercial</a></li><li><a href="/database/69880.html">Industrial and commercial bank of mysql database architectur</a></li><li><a href="/Mobile/61226.html">Small white weak q: use QT to develop commercial software is</a></li><li><a href="/os/49804.html">O: ubuntu installation pyqt5 tip is not compatible with the </a></li><li><a href="/Softwareengineering/43801.html">Graduation design for help! Commercial vehicle detection bas</a></li><li><a href="/database/38233.html">Pbntierbuilder product application solutions of commercial s</a></li><li><a href="/database/38193.html">Electric commercial what data is better</a></li><li><a href="/other/35527.html">Can odd pseudo 3 d game engine development commercial video </a></li> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>