Форум о социальных сетях Поиск по форуму Инвестиции SMM обучение SMM курсы
Форум о социальных сетях Поиск по форуму Инвестиции SMM обучение SMM курсы
  • Страница 1 из 1
  • 1
Форма регистрацыи
#1
Воскресенье, 10.05.2009, 12:26
kinos
Заблокированные
Сообщения: 36
Репутация: -435

Code
<br><div id="LoginInfo">Введите логин</div>    
    <script>    
    /* © Айдар aka Pain ( <A class="link" target="_blank" href="http://free-manga.net.ru/">http://free-manga.net.ru/</A> ) */    
    $(document).ready(function () {    
    $('#siF20').attr('disabled', true);    
    });    
    $('#siF13').change(function () {    
    Er = false;    
    if ($('#siF13').attr('value').length < 2){    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Минимальная длина логина - 2 символа</b></b>');    
    Er = true;    
    }    
    if ($('#siF13').attr('value').length > 25){    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Максимальная длина логина - 25 символов</b>');    
    Er = true;    
    }    
    if ($('#siF13').attr('value').match(/[^a-zA-Z0-9\-\_\@\%\{\}\[\]\(\)\u0080-\uFFFF]/)){    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Недопустимые символы</b>');    
    Er = true    
    }    
    if (!Er){    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/wd/3/ajaxs.gif"> <b>Подождите идет проверка...</b>');    
    $.get('/index/8-0-' + $('#siF13').attr('value'), function (Data) {    
    if (Data == 'Пользователь не найден') {    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/ok.png"> <b style="color: green;">Логин ' + $('#siF13').attr('value') + ' свободен</b>');    
    $('#siF20').attr('disabled', false);    
    }    
    else {    
    $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Логин ' + $('#siF13').attr('value') + ' занят</b>');    
    $('#siF20').attr('disabled', true);    
    }    
    })    
    }    
    else {    
    $('#siF20').attr('disabled', true);    
    }    
    });    
    </script>    

</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($PASSWORD_FL$)?>
<tr id="siM45"><td class="manTd1" id="siM46"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" border="0" alt="" />$PASSWORD_SIGN$</td><td class="manTd2" id="siM47">$PASSWORD_FL$</td></tr>
<?endif?>
<?if($PASSWORD1_FL$)?>
<tr id="siM48"><td class="manTd1" id="siM49"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" border="0" alt="" />$PASSWORD1_SIGN$</td><td class="manTd2" id="siM50">$PASSWORD1_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?else?><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($GROUP_FL$)?>
<tr id="siM70"><td class="manTd1" id="siM71"><img src="http://forucoz.com/mpr/group.png" border="0" alt="" />$GROUP_SIGN$</td><td class="manTd2" id="siM72">$GROUP_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($NAME_FL$)?>
<tr id="siM51"><td class="manTd1" id="siM52"><img src="http://forucoz.com/mpr/nameu.png" border="0" alt="" />$NAME_SIGN$</td><td class="manTd2" id="siM53">$NAME_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($EMAIL_FL$)?>
<tr id="siM54"><td class="manTd1" id="siM55"><img src="http://forucoz.com/mpr/email.png" border="0" alt="" />$EMAIL_SIGN$</td><td class="manTd2" id="siM56">$EMAIL_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($WWW_FL$)?>
<tr id="siM3"><td class="manTd1" id="siM4"><img src="http://forucoz.com/mpr/www.png" border="0" alt="" />$WWW_SIGN$</td><td class="manTd2" id="siM5">$WWW_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($ICQ_FL$)?>
<tr id="siM6"><td class="manTd1" id="siM7"><img src="http://forucoz.com/mpr/icq.png" border="0" alt="" />$ICQ_SIGN$</td><td class="manTd2" id="siM8">$ICQ_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($AOL_FL$)?>
<tr id="siM9"><td class="manTd1" id="siM10">$AOL_SIGN$</td><td class="manTd2" id="siM11">$AOL_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($MSN_FL$)?>
<tr id="siM12"><td class="manTd1" id="siM13">$MSN_SIGN$</td><td class="manTd2" id="siM14">$MSN_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($YAHOO_FL$)?>
<tr id="siM15"><td class="manTd1" id="siM16">$YAHOO_SIGN$</td><td class="manTd2" id="siM17">$YAHOO_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($BIRTHDAY_FL$)?>
<tr id="siM30"><td class="manTd1" id="siM31"><img src="http://forucoz.com/mpr/denrojd.png" border="0" alt="" />$BIRTHDAY_SIGN$</td><td class="manTd2" id="siM32">$BIRTHDAY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($GENDER_FL$)?>
<tr id="siM27"><td class="manTd1" id="siM28"><img src="http://forucoz.com/mpr/group.png" border="0" alt="" />$GENDER_SIGN$</td><td class="manTd2" id="siM29">$GENDER_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($COUNTRY_FL$)?>
<tr id="siM18"><td class="manTd1" id="siM19"><img src="http://forucoz.com/mpr/registracia.png" border="0" alt="" />$COUNTRY_SIGN$</td><td class="manTd2" id="siM20">$COUNTRY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($STATE_FL$)?>
<tr id="siM21"><td class="manTd1" id="siM22">$STATE_SIGN$</td><td class="manTd2" id="siM23">$STATE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($CITY_FL$)?>
<tr id="siM24"><td class="manTd1" id="siM25"><img src="http://forucoz.com/mpr/vxod.png" border="0" alt="" />$CITY_SIGN$</td><td class="manTd2" id="siM26">$CITY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($AVATAR_FL$)?>
<tr id="siM36"><td class="manTd1" valign="top" id="siM37">$AVATAR_SIGN$</td><td class="manTd2" id="siM38">$AVATAR_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($SIGNATURE_FL$)?>
<tr id="siM33"><td class="manTd1" id="siM34">$SIGNATURE_SIGN$</td><td class="manTd2" id="siM35">$SIGNATURE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($SUBSCRIPTION_FL$)?>
<tr id="siM39"><td class="manTd1" id="siM40">$SUBSCRIPTION_SIGN$</td><td class="manTd2" id="siM41">$SUBSCRIPTION_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($OPTIONS_FL$)?>
<tr id="siM63"><td class="manTd1" id="siM64">$OPTIONS_SIGN$</td><td class="manTd2" id="siM65">$OPTIONS_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<?if($SECURITY_CODE_FL$)?>
<tr id="siM60"><td class="manTd1" id="siM61">$SECURITY_CODE_SIGN$</td><td class="manTd2" id="siM62">$SECURITY_CODE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>
<?endif?>
<tr id="siM64"><td class="manTdBut" colspan="2" align="center" id="siM65"><input class="manFlSbm" id="siF20" type="submit" name="sbm" value="$SUBMIT_SIGN$" /></td></tr>
</table>
Пост отредактировал kinos - Воскресенье, 10.05.2009, 12:26
http://best-ucoz.at.ua/ Банеерами даваите меня4а))) Все для укоз)

http://best-ucoz.at.ua/

DOY
#2
Воскресенье, 10.05.2009, 14:22
DOY
Пользователь
Сообщения: 127
Репутация: 51
Не закрыт один или более условный оператор (<?if?>)
#3
Воскресенье, 10.05.2009, 14:32
KOPEIII
Проверенный
Сообщения: 803
Репутация: 1252
DOY, так ты закрой его и всё
#4
Воскресенье, 10.05.2009, 15:57
Jizer
Пользователь
Сообщения: 79
Репутация: 71
kinos ,Руки кривые? Вот нормальный код:

Code
<br><div id="LoginInfo">Введите логин</div>     
     <script>     
     /* © Айдар aka Pain ( <A class="link" target="_blank" href="http://free-manga.net.ru/">http://free-manga.net.ru/</A> ) */     
     $(document).ready(function () {     
     $('#siF20').attr('disabled', true);     
     });     
     $('#siF13').change(function () {     
     Er = false;     
     if ($('#siF13').attr('value').length < 2){     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Минимальная длина логина - 2 символа</b></b>');     
     Er = true;     
     }     
     if ($('#siF13').attr('value').length > 25){     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Максимальная длина логина - 25 символов</b>');     
     Er = true;     
     }     
     if ($('#siF13').attr('value').match(/[^a-zA-Z0-9\-\_\@\%\{\}\[\]\(\)\u0080-\uFFFF]/)){     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Недопустимые символы</b>');     
     Er = true     
     }     
     if (!Er){     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/wd/3/ajaxs.gif"> <b>Подождите идет проверка...</b>');     
     $.get('/index/8-0-' + $('#siF13').attr('value'), function (Data) {     
     if (Data == 'Пользователь не найден') {     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/ok.png"> <b style="color: green;">Логин ' + $('#siF13').attr('value') + ' свободен</b>');     
     $('#siF20').attr('disabled', false);     
     }     
     else {     
     $('#LoginInfo').html('<img align="absmiddle" src="http://src.ucoz.ru/img/icon/er.png"> <b style="color: red;">Логин ' + $('#siF13').attr('value') + ' занят</b>');     
     $('#siF20').attr('disabled', true);     
     }     
     })     
     }     
     else {     
     $('#siF20').attr('disabled', true);     
     }     
     });     
     </script>     

</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  

<?if($PASSWORD_FL$)?>  
<tr id="siM45"><td class="manTd1" id="siM46"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" border="0" alt="" />$PASSWORD_SIGN$</td><td class="manTd2" id="siM47">$PASSWORD_FL$</td></tr>  
<?endif?>  
<?if($PASSWORD1_FL$)?>  
<tr id="siM48"><td class="manTd1" id="siM49"><div class="udtlb"><img src="http://forucoz.com/mpr/ip.png" border="0" alt="" />$PASSWORD1_SIGN$</td><td class="manTd2" id="siM50">$PASSWORD1_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?else?><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($GROUP_FL$)?>  
<tr id="siM70"><td class="manTd1" id="siM71"><img src="http://forucoz.com/mpr/group.png" border="0" alt="" />$GROUP_SIGN$</td><td class="manTd2" id="siM72">$GROUP_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($NAME_FL$)?>  
<tr id="siM51"><td class="manTd1" id="siM52"><img src="http://forucoz.com/mpr/nameu.png" border="0" alt="" />$NAME_SIGN$</td><td class="manTd2" id="siM53">$NAME_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($EMAIL_FL$)?>  
<tr id="siM54"><td class="manTd1" id="siM55"><img src="http://forucoz.com/mpr/email.png" border="0" alt="" />$EMAIL_SIGN$</td><td class="manTd2" id="siM56">$EMAIL_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($WWW_FL$)?>  
<tr id="siM3"><td class="manTd1" id="siM4"><img src="http://forucoz.com/mpr/www.png" border="0" alt="" />$WWW_SIGN$</td><td class="manTd2" id="siM5">$WWW_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($ICQ_FL$)?>  
<tr id="siM6"><td class="manTd1" id="siM7"><img src="http://forucoz.com/mpr/icq.png" border="0" alt="" />$ICQ_SIGN$</td><td class="manTd2" id="siM8">$ICQ_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($AOL_FL$)?>  
<tr id="siM9"><td class="manTd1" id="siM10">$AOL_SIGN$</td><td class="manTd2" id="siM11">$AOL_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($MSN_FL$)?>  
<tr id="siM12"><td class="manTd1" id="siM13">$MSN_SIGN$</td><td class="manTd2" id="siM14">$MSN_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($YAHOO_FL$)?>  
<tr id="siM15"><td class="manTd1" id="siM16">$YAHOO_SIGN$</td><td class="manTd2" id="siM17">$YAHOO_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($BIRTHDAY_FL$)?>  
<tr id="siM30"><td class="manTd1" id="siM31"><img src="http://forucoz.com/mpr/denrojd.png" border="0" alt="" />$BIRTHDAY_SIGN$</td><td class="manTd2" id="siM32">$BIRTHDAY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($GENDER_FL$)?>  
<tr id="siM27"><td class="manTd1" id="siM28"><img src="http://forucoz.com/mpr/group.png" border="0" alt="" />$GENDER_SIGN$</td><td class="manTd2" id="siM29">$GENDER_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($COUNTRY_FL$)?>  
<tr id="siM18"><td class="manTd1" id="siM19"><img src="http://forucoz.com/mpr/registracia.png" border="0" alt="" />$COUNTRY_SIGN$</td><td class="manTd2" id="siM20">$COUNTRY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($STATE_FL$)?>  
<tr id="siM21"><td class="manTd1" id="siM22">$STATE_SIGN$</td><td class="manTd2" id="siM23">$STATE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($CITY_FL$)?>  
<tr id="siM24"><td class="manTd1" id="siM25"><img src="http://forucoz.com/mpr/vxod.png" border="0" alt="" />$CITY_SIGN$</td><td class="manTd2" id="siM26">$CITY_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($AVATAR_FL$)?>  
<tr id="siM36"><td class="manTd1" valign="top" id="siM37">$AVATAR_SIGN$</td><td class="manTd2" id="siM38">$AVATAR_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($SIGNATURE_FL$)?>  
<tr id="siM33"><td class="manTd1" id="siM34">$SIGNATURE_SIGN$</td><td class="manTd2" id="siM35">$SIGNATURE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($SUBSCRIPTION_FL$)?>  
<tr id="siM39"><td class="manTd1" id="siM40">$SUBSCRIPTION_SIGN$</td><td class="manTd2" id="siM41">$SUBSCRIPTION_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($OPTIONS_FL$)?>  
<tr id="siM63"><td class="manTd1" id="siM64">$OPTIONS_SIGN$</td><td class="manTd2" id="siM65">$OPTIONS_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<?if($SECURITY_CODE_FL$)?>  
<tr id="siM60"><td class="manTd1" id="siM61">$SECURITY_CODE_SIGN$</td><td class="manTd2" id="siM62">$SECURITY_CODE_FL$</td></tr><tr><td height="10" class="manTdSep" colspan="2"><hr class="manHr" /></td></tr>  
<?endif?>  
<tr id="siM64"><td class="manTdBut" colspan="2" align="center" id="siM65"><input class="manFlSbm" id="siF20" type="submit" name="sbm" value="$SUBMIT_SIGN$" /></td></tr>  
</table>
uADMIN.ru - софт портал для админов и юзеров

n80.uadmin.ru - Фан клуб Nokia N80
smartfone.at.ua - Все для смартфонов
http://uadmin.ru/forum/88-134-1 - пРикоЛ мОнГоЛ

pis
#5
Воскресенье, 10.05.2009, 17:11
pis
Проверенный
Сообщения: 860
Репутация: 600
красиво!
#6
Воскресенье, 10.05.2009, 17:26
LiNX
Заблокированные
Сообщения: 550
Репутация: 211
Было
http://megasoft.3dn.ru/forum/17-1355-1
pis
#7
Воскресенье, 10.05.2009, 18:03
pis
Проверенный
Сообщения: 860
Репутация: 600
а черный есть?
#8
Воскресенье, 10.05.2009, 18:41
Maх
Заблокированные
Сообщения: 423
Репутация: 104
Jizer, спасибо за нормальный код
[img]http://i032.radikal.ru/0907/56/c6fc919e2d8f.gif[/img]
  • Страница 1 из 1
  • 1
Поиск:
Форум
Социальные сети
Хостинг от uCoz