Português
<!-- 把下列代码加到<body>区域中 --> <script> <!-- function checkhaoma(TheForm) { a=TheForm.haoma1.value; b=TheForm.haoma2.value; c=TheForm.haoma3.value; d=TheForm.haoma4.value; e=TheForm.haoma5.value; se ((a==b)||(a==c)||(a==d)||(a==e)||(b==c)||(b==d)|| (b==e)||(c==d)||(c==e)||(d==e)) { alert("所选择的彩票的5个号码不得重复!") retorna falso ; } retornar verdadeiro; } --> </script> <form action="index.asp?vv=add" method="post" onsubmit="return checkhaoma(this)"> <select name="haoma1"> <option value="1 ">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value= "5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</ opção> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20 </option> </select> <select name="haoma2"> <option value="1">1</option> <option value="2">2</option> <option value="3"> 3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7 ">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value= "11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> </select> <select name="haoma3"> <option value="1">1</option > <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5< /option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9"> 9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13 ">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value= "17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> </ select> <select name="haoma4"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> < option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option > <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11< /option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15"> 15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19 ">19</option> <option value="20">20</option> </select> <select name="haoma5"> <option value="1">1</option> <option value=" 2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option valor ="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> < option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option > <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17< /option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> </select> <input type= "submit" name="submit" value="买号码" style="BACKGROUND-COLOR:#FFFFE8; BORDA INFERIOR: preto sólido de 1px; BORDA ESQUERDA: preto sólido de 1px; BORDA DIREITA: preto sólido de 1px; BORDA SUPERIOR: preto sólido de 1px;altura=20"></form>