Каталог статей
Красивая страница регистрации
Заходите в панель упр. >> Форма регистрации пользователей >> удаляете от туда всё и вставляете туда этот код :
Code <table class="manTable" id="siM63" border="0" cellpadding="2" cellspacing="1" width="100%"><tbody><tr id="siM1" align="center"><td colspan="2" class="manTdError" id="siM2"><img alt="" src="http://tdaily.ru/imgs/medium/081006288.jpg" align="" border="0px"><br><u>Правила</u>:<br><div align="left">1) Несоздовай повторных аккаунтов (БАН)<br>2) Не рекламируй свой сайт (БАН)<br>3) Пишите настоящий email чтобы с вами могли связаться<br></div><br></td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><!--ENDIF--><tr id="siM42"><td class="manTd1" id="siM43" width="35%"><img src="http://forucoz.com/mpr/uname.png" alt="" border="0">$LOGIN_SIGN$</td><td class="manTd2" id="siM44"><input id="siF13" class="manFlLogin" name="user" value="" size="20" style="width: 200px;" maxlength="25" onchange="PrepareLoginToChecking();SubmitLoginToCheck()" type="text"> <iframe name="lf" src="/index/8-0-*" onload="GetMessageAboutAvailableLogin()" frameborder="0" height="1px" width="1px"></iframe> <input id="tch" value="*" type="hidden"> <span id="msg"></span> <script>
function PrepareLoginToChecking() { var original=("-").split("*") var neww=("~").split("*") var xy=0 for(xy=0; xy<=(original.length-1); xy++) { var original1="/"+original[xy]+"/g" document.getElementById("tch").value = document.getElementById("siF13").value.replace(eval(original1), neww[xy]) } } function SubmitLoginToCheck() { if(document.getElementById("siF13").value.length <= 1) { document.getElementById('msg').innerHTML='<span style=\"font-size:7pt;\"><img src=\"http://src.ucoz.ru/img/icon/er.png\" align=\"absmiddle\" border=\"0\"> Введите логин</span>'; return false; } window.lf.location='/index/8-0-'+document.getElementById("tch").value+''; document.getElementById('msg').innerHTML='<span style=\"font-size:7pt;\"><img src=\"http://src.ucoz.ru/img/wd/3/ajaxs.gif\" align=\"absmiddle\" border=\"0\"> Проверка логина...</span>'; } function GetMessageAboutAvailableLogin() { if(document.getElementById("siF13").value.length <= 1) { document.getElementById('msg').innerHTML='<span style=\"font-size:7pt;\"><img src=\"http://src.ucoz.ru/img/icon/er.png\" align=\"absmiddle\" border=\"0\"> Введите логин</span>'; return false; } if(window.lf.document.getElementById('chUName')) { document.getElementById('msg').innerHTML='<span style=\"font-size:7pt;\"><img src=\"http://src.ucoz.ru/img/icon/er.png\" align=\"absmiddle\" border=\"0\"> Логин занят</span>'; } else { document.getElementById('msg').innerHTML='<span style=\"font-size:7pt;\"><img src=\"http://src.ucoz.ru/img/icon/ok.png\" align=\"absmiddle\" border=\"0\"> Логин свободен</span>'; } } </script></td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM45"><td class="manTd1" id="siM46"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" alt="" border="0">$PASSWORD_SIGN$</div></td><td class="manTd2" id="siM47">$PASSWORD_FL$<div id="mypassword_text" style="display: inline;"></div> <div id="mypassword_bar" style="font-size: 1px; height: 3px; width: 0px;"></div></td></tr><SCRIPT type="text/javascript"> var m_strUpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_"; var m_strLowerCase = "abcdefghijklmnopqrstuvwxyz-"; var m_strNumber = "0123456789"; function checkPassword(strPassword) { var nScore = 0; if (strPassword.length < 6) { nScore += 0; } else if (strPassword.length > 5 && strPassword.length < 10) { nScore += 11; } else if (strPassword.length > 9) { nScore += 33; } var nUpperCount = countContain(strPassword, m_strUpperCase); var nLowerCount = countContain(strPassword, m_strLowerCase); var nLowerUpperCount = nUpperCount + nLowerCount; if (nUpperCount == 0 && nLowerCount != 0) { nScore += 10; } else if (nUpperCount != 0 && nLowerCount == 0) { nScore += 10; } else if (nUpperCount != 0 && nLowerCount != 0) { nScore += 26; } var nNumberCount = countContain(strPassword, m_strNumber); if (nNumberCount >= 2) { nScore += 10; } if (nNumberCount >= 4) { nScore += 26; } if (nNumberCount != 0 && nLowerUpperCount != 0) { nScore += 5; } return nScore; } function runPassword(strPassword, strFieldID) { var nScore = checkPassword(strPassword); var ctlBar = document.getElementById(strFieldID + "_bar"); var ctlText = document.getElementById(strFieldID + "_text"); if (!ctlBar || !ctlText) return; ctlBar.style.width = nScore + "%"; if (nScore == 100) { var strText = "Отличный пароль! Главное не забыть его. :)"; var strColor = "limegreen"; } else if (nScore >= 80) { var strText = "Очень хороший пароль."; var strColor = "blue"; } else if (nScore >= 65) { var strText = "Это видно, что пароль, можно уже и остановиться!"; var strColor = "dodgerblue"; } else if (nScore >= 50) { var strText = "Во-во, это ещё ничего!.."; var strColor = "mediumturquoise"; } else if (nScore >= 25) { var strText = "Слабоват парольчик."; var strColor = "yellowgreen"; } else if (nScore != 0) { var strText = "Ужас. (qwerty и то лучше :)) "; var strColor = "firebrick"; } else { var strText = ""; var strColor = "black"; } ctlBar.style.backgroundColor = strColor; ctlText.innerHTML = "<span style='color: " + strColor + ";'> " + strText + " - " + nScore + "%</span>"; } function countContain(strPassword, strCheck) { var nCount = 0; for (i = 0; i < strPassword.length; i++) { if (strCheck.indexOf(strPassword.charAt(i)) > -1) { nCount++; } } return nCount; } document.getElementById("siF14").onkeyup="runPassword(this.value, 'mypassword')"; </SCRIPT><tr id="siM48"><td class="manTd1" id="siM49"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" alt="" border="0">$PASSWORD1_SIGN$</div></td><td class="manTd2" id="siM50">$PASSWORD1_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><!--%IFEL5%3%><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr> <!%IFEN5%3%--><tr id="siM70"><td class="manTd1" id="siM71"><img src="http://forucoz.com/mpr/group.png" alt="" border="0">$GROUP_SIGN$</td><td class="manTd2" id="siM72">$GROUP_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM51"><td class="manTd1" id="siM52"><img src="http://forucoz.com/mpr/nameu.png" alt="" border="0">$NAME_SIGN$</td><td class="manTd2" id="siM53">$NAME_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM54"><td class="manTd1" id="siM55"><img src="http://forucoz.com/mpr/email.png" alt="" border="0">$EMAIL_SIGN$</td><td class="manTd2" id="siM56">$EMAIL_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM3"><td class="manTd1" id="siM4"><img src="http://forucoz.com/mpr/www.png" alt="" border="0">$WWW_SIGN$</td><td class="manTd2" id="siM5">$WWW_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM6"><td class="manTd1" id="siM7"><img src="http://forucoz.com/mpr/icq.png" alt="" border="0">$ICQ_SIGN$</td><td class="manTd2" id="siM8">$ICQ_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM9"><td class="manTd1" id="siM10">$AOL_SIGN$</td><td class="manTd2" id="siM11">$AOL_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM12"><td class="manTd1" id="siM13">$MSN_SIGN$</td><td class="manTd2" id="siM14">$MSN_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM15"><td class="manTd1" id="siM16">$YAHOO_SIGN$</td><td class="manTd2" id="siM17">$YAHOO_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM30"><td class="manTd1" id="siM31"><img src="http://forucoz.com/mpr/denrojd.png" alt="" border="0">$BIRTHDAY_SIGN$</td><td class="manTd2" id="siM32">$BIRTHDAY_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM27"><td class="manTd1" id="siM28"><img src="http://forucoz.com/mpr/group.png" alt="" border="0">$GENDER_SIGN$</td><td class="manTd2" id="siM29">$GENDER_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM18"><td class="manTd1" id="siM19"><img src="http://forucoz.com/mpr/registracia.png" alt="" border="0">$COUNTRY_SIGN$</td><td class="manTd2" id="siM20">$COUNTRY_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM21"><td class="manTd1" id="siM22">$STATE_SIGN$</td><td class="manTd2" id="siM23">$STATE_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM24"><td class="manTd1" id="siM25"><img src="http://forucoz.com/mpr/vxod.png" alt="" border="0">$CITY_SIGN$</td><td class="manTd2" id="siM26">$CITY_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM36"><td class="manTd1" id="siM37" valign="top">$AVATAR_SIGN$</td><td class="manTd2" id="siM38">$AVATAR_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <tr id="siM39"><td class="manTd1" id="siM40">$SUBSCRIPTION_SIGN$</td><td class="manTd2" id="siM41">$SUBSCRIPTION_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM63"><td class="manTd1" id="siM64">$OPTIONS_SIGN$</td><td class="manTd2" id="siM65">$OPTIONS_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM60"><td class="manTd1" id="siM61">$SECURITY_CODE_SIGN$</td><td class="manTd2" id="siM62">$SECURITY_CODE_FL$</td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr><tr id="siM64"><td class="manTdBut" colspan="2" id="siM65" align="center"><input class="manFlSbm" id="siF20" type="image" src="http://nn-files.ucoz.net/nn-files.ucoz.net.gif" name="sbm" value="$SUBMIT_SIGN$" /></td></tr><br> </tbody></table> и в самый конец в страницу пользователей перед </body> и </html> ставим это : Code <SPAN id="chUName" style="display:none;">Проверка логина, так сказать :)</SPAN> Пример ( Не реклама ! )
Источник: http://forucoz.com/ |
Категория: Скрипты для ucoz | Добавил: Timka (12.05.2010)
|
Просмотров: 292
| Теги: страница регистрации
| Рейтинг: 0.0/0 |
Добавлять комментарии могут только зарегистрированные пользователи. [ Регистрация | Вход ]
|
Статистика |
---|
Онлайн всего: 1 Гостей: 1 Пользователей: 0 |
|