<p><table width="400" class="colorborder"><tr><td> <center>Генератор пароля</center> <hr /> <table width="100%" border="0"> <tr> <td><center>вариант1:</center></td> <td><center>вариант2:</center></td> </tr> <tr> <td><center><input class="stWord" type="text" id="textfield010" value="010" /></center></td> <td><center><input class="stWord" type="text" id="textfield020" value="020" /></center></td> </tr> <tr> <td><center>вариант3:</center></td> <td><center>вариант4:</center></td> </tr> <tr> <td><center><input class="stWord" type="text" id="textfield030" value="030" /></center></td> <td><center><input class="stWord" type="text" id="textfield040" value="040" /></center></td> </tr> <tr> <td colspan="2"><center><input type="button" id="but01" onclick="ChangeCod();" value="сгенерировать"/></center></td> </tr> <tr> <td colspan="2"><center>вариант 5:</center></td> </tr> <tr> <td colspan="2"><center><input class="stWord" type="text" id="textfield110" value="050" /></center></td> </tr> <tr> <td colspan="2"><center><input type="button" id="but11" onclick="ChangeCodB();" value="пуск"/></center></td> </tr> </table> </td> </tr> </table> <script> var BigCode = [26]; var SmallCode = [26]; var CifiryCode = [9]; //--- BigCode[0] = 'Q'; BigCode[1] = 'W'; BigCode[2] = 'E'; BigCode[3] = 'R'; BigCode[4] = 'T'; BigCode[5] = 'Y'; BigCode[6] = 'U'; BigCode[7] = 'I'; BigCode[8] = 'O'; BigCode[9] = 'P'; BigCode[10] = 'A'; BigCode[11] = 'S'; BigCode[12] = 'D'; BigCode[13] = 'F'; BigCode[14] = 'G'; BigCode[15] = 'H'; BigCode[16] = 'J'; BigCode[17] = 'K'; BigCode[18] = 'L'; BigCode[19] = 'Z'; BigCode[20] = 'X'; BigCode[21] = 'C'; BigCode[22] = 'V'; BigCode[23] = 'B'; BigCode[24] = 'N'; BigCode[25] = 'M'; //--- SmallCode[0] = 'q'; SmallCode[1] = 'w'; SmallCode[2] = 'e'; SmallCode[3] = 'r'; SmallCode[4] = 't'; SmallCode[5] = 'y'; SmallCode[6] = 'u'; SmallCode[7] = 'i'; SmallCode[8] = 'o'; SmallCode[9] = 'p'; SmallCode[10] = 'a'; SmallCode[11] = 's'; SmallCode[12] = 'd'; SmallCode[13] = 'f'; SmallCode[14] = 'g'; SmallCode[15] = 'h'; SmallCode[16] = 'j'; SmallCode[17] = 'k'; SmallCode[18] = 'l'; SmallCode[19] = 'z'; SmallCode[20] = 'x'; SmallCode[21] = 'c'; SmallCode[22] = 'v'; SmallCode[23] = 'b'; SmallCode[24] = 'n'; SmallCode[25] = 'm'; //--- CifiryCode[0] = '1'; CifiryCode[1] = '2'; CifiryCode[2] = '3'; CifiryCode[3] = '4'; CifiryCode[4] = '5'; CifiryCode[5] = '6'; CifiryCode[6] = '7'; CifiryCode[7] = '8'; CifiryCode[8] = '9'; //--- function ChangeCod() { //---- ChangeCod1(); ChangeCod2(); ChangeCod3(); ChangeCod4(); } //---- function ChangeCod1() { var STemp1 = [6]; var STemp2 = [6]; var STemp3 = [3];</p> <p> STemp1[0] = BigCode[Math.floor(Math.random() * 25)]; STemp1[1] = BigCode[Math.floor(Math.random() * 25)]; STemp1[2] = BigCode[Math.floor(Math.random() * 25)]; STemp1[3] = BigCode[Math.floor(Math.random() * 25)]; STemp1[4] = BigCode[Math.floor(Math.random() * 25)]; STemp1[5] = BigCode[Math.floor(Math.random() * 25)]; STemp2[0] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[1] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[2] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[3] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[4] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[5] = SmallCode[Math.floor(Math.random() * 25)]; STemp3[0] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[1] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[2] = CifiryCode[Math.floor(Math.random() * 9)];</p> <p>//--- var myCode; var CountTemp = Math.floor(Math.random() * 3) + 1; myCode = ''; for ( i = 0; i <= CountTemp; i++) { myCode = myCode + STemp1[i]; } myCode = myCode + '_'; for ( i = 0; i <= 5 - CountTemp; i++) { myCode = myCode + STemp2[i]; } myCode = myCode + '*'; myCode = myCode + STemp3[0] + STemp3[1] + STemp3[2]; //---- document.getElementById('textfield010').value = myCode; } //----------------------------------------------------------- function ChangeCod2() { var STemp1 = [6]; var STemp2 = [6]; var STemp3 = [3];</p> <p> STemp1[0] = BigCode[Math.floor(Math.random() * 25)]; STemp1[1] = BigCode[Math.floor(Math.random() * 25)]; STemp1[2] = BigCode[Math.floor(Math.random() * 25)]; STemp1[3] = BigCode[Math.floor(Math.random() * 25)]; STemp1[4] = BigCode[Math.floor(Math.random() * 25)]; STemp1[5] = BigCode[Math.floor(Math.random() * 25)]; STemp2[0] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[1] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[2] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[3] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[4] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[5] = SmallCode[Math.floor(Math.random() * 25)]; STemp3[0] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[1] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[2] = CifiryCode[Math.floor(Math.random() * 9)];</p> <p>//--- var myCode; var CountTemp = Math.floor(Math.random() * 3) + 1; myCode = ''; for ( i = 0; i <= CountTemp; i++) { myCode = myCode + STemp1[i]; } myCode = myCode + '*'; for ( i = 0; i <= 5 - CountTemp; i++) { myCode = myCode + STemp2[i]; } myCode = myCode + '+'; myCode = myCode + STemp3[0] + STemp3[1] + STemp3[2]; //---- document.getElementById('textfield020').value = myCode; } //---------------------------------------------------------- function ChangeCod3() { var STemp1 = [6]; var STemp2 = [6]; var STemp3 = [3];</p> <p> STemp1[0] = BigCode[Math.floor(Math.random() * 25)]; STemp1[1] = BigCode[Math.floor(Math.random() * 25)]; STemp1[2] = BigCode[Math.floor(Math.random() * 25)]; STemp1[3] = BigCode[Math.floor(Math.random() * 25)]; STemp1[4] = BigCode[Math.floor(Math.random() * 25)]; STemp1[5] = BigCode[Math.floor(Math.random() * 25)]; STemp2[0] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[1] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[2] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[3] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[4] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[5] = SmallCode[Math.floor(Math.random() * 25)]; STemp3[0] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[1] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[2] = CifiryCode[Math.floor(Math.random() * 9)];</p> <p>//--- var myCode; var CountTemp = Math.floor(Math.random() * 3) + 1; myCode = ''; for ( i = 0; i <= CountTemp; i++) { myCode = myCode + STemp1[i]; } myCode = myCode + '-'; for ( i = 0; i <= 5 - CountTemp; i++) { myCode = myCode + STemp2[i]; } myCode = myCode + '+'; myCode = myCode + STemp3[0] + STemp3[1] + STemp3[2]; //---- document.getElementById('textfield030').value = myCode; } //---------------------------------------------------------- function ChangeCod4() { var STemp1 = [6]; var STemp2 = [6]; var STemp3 = [3];</p> <p> STemp1[0] = BigCode[Math.floor(Math.random() * 25)]; STemp1[1] = BigCode[Math.floor(Math.random() * 25)]; STemp1[2] = BigCode[Math.floor(Math.random() * 25)]; STemp1[3] = BigCode[Math.floor(Math.random() * 25)]; STemp1[4] = BigCode[Math.floor(Math.random() * 25)]; STemp1[5] = BigCode[Math.floor(Math.random() * 25)]; STemp2[0] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[1] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[2] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[3] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[4] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[5] = SmallCode[Math.floor(Math.random() * 25)]; STemp3[0] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[1] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[2] = CifiryCode[Math.floor(Math.random() * 9)];</p> <p>//--- var myCode; var CountTemp = Math.floor(Math.random() * 3) + 1; myCode = ''; for ( i = 0; i <= CountTemp; i++) { myCode = myCode + STemp1[i]; } myCode = myCode + '='; for ( i = 0; i <= 5 - CountTemp; i++) { myCode = myCode + STemp2[i]; } myCode = myCode + '='; myCode = myCode + STemp3[0] + STemp3[1] + STemp3[2]; //---- document.getElementById('textfield040').value = myCode; }</p> <p> timerId = setInterval(ChangeCod5, 34); function ChangeCodB() { //---- if (document.getElementById('but11').value == 'РїСѓСЃРє'){ document.getElementById('but11').value = 'стоп'; } else { document.getElementById('but11').value = 'РїСѓСЃРє'; } } //---- function ChangeCod5() { var STemp1 = [6]; var STemp2 = [6]; var STemp3 = [3];</p> <p> STemp1[0] = BigCode[Math.floor(Math.random() * 25)]; STemp1[1] = BigCode[Math.floor(Math.random() * 25)]; STemp1[2] = BigCode[Math.floor(Math.random() * 25)]; STemp1[3] = BigCode[Math.floor(Math.random() * 25)]; STemp1[4] = BigCode[Math.floor(Math.random() * 25)]; STemp1[5] = BigCode[Math.floor(Math.random() * 25)]; STemp2[0] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[1] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[2] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[3] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[4] = SmallCode[Math.floor(Math.random() * 25)]; STemp2[5] = SmallCode[Math.floor(Math.random() * 25)]; STemp3[0] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[1] = CifiryCode[Math.floor(Math.random() * 9)]; STemp3[2] = CifiryCode[Math.floor(Math.random() * 9)];</p> <p>//--- var myCode; var CountTemp = Math.floor(Math.random() * 3) + 1; myCode = ''; for ( i = 0; i <= CountTemp; i++) { myCode = myCode + STemp1[i]; } myCode = myCode + '_'; for ( i = 0; i <= 5 - CountTemp; i++) { myCode = myCode + STemp2[i]; } myCode = myCode + '*'; myCode = myCode + STemp3[0] + STemp3[1] + STemp3[2]; //---- if (document.getElementById('but11').value === 'стоп'){ document.getElementById('textfield110').value = myCode; } }</p> <p> </script></p>