16.12.2009, 09:33 | |||||
Форма регистрации с проверкой полейПУ-->Управление дизайном-->Пользователи-->Форма регистрации пользователей. Заменяем все на это:
Code $ERROR$ <!--ENDIF--> <?if($LOGIN_FL$)?> <table class="manTable" id="siM63" border="0" cellpadding="2" cellspacing="1" width="100%"> <!--IF(($ERROR$))--> <tbody><tr id="siM42"><td class="manTd1" id="siM43" width="35%">$LOGIN_SIGN$</td><td class="manTd2" id="siM44">$LOGIN_FL$<span id="msgL" style=""> </span> <input id="tch" value="*" type="hidden"> <script type="text/javascript"> // // var Lok; var L = document.getElementById('siF13'); L.style.width = '50%'; L.onchange = 'PrepareLoginToChecking();SubmitLoginToCheck()'; if(navigator.appName=='Microsoft Internet Explorer'){L.attachEvent('onchange', function() {PrepareLoginToChecking();SubmitLoginToCheck()},true)}else{ L.addEventListener('change', function() {PrepareLoginToChecking();SubmitLoginToCheck()}, true)} var lmsg = document.getElementById('msgL'); function checkLogin(){ if (L.value.match(/[^a-zA-Z0-9\-\_\@\%\{\}\[\]\(\)\u0080-\uFFFF]/)){ Lok=0; document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> В логине присутствуют недопустимые символы'; } else if (L.value.length<2){ Lok=0; document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> Минимальная длина логина <b>2</b> символа'; } else if (L.value.length>25){ Lok=0; document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/er.png" align="absmiddle" width="16" height="16"> Максимальная длина логина <b>25</b> символов'; } else { Lok=1; document.getElementById('msgL').innerHTML='<img border="0" src="http://src.ucoz.ru/img/icon/ok.png" align="absmiddle" width="16" height="16"> Логин введён корректно'; } } function PrepareLoginToChecking() { var original=("-").split("*"); var neww=("~").split("*"); var xy=0; while(xy<=(original.length-1)) { var original1="/"+original[xy]+"/g"; document.getElementById("tch").value = L.value.replace(eval(original1), neww[xy]); xy++; } } function SubmitLoginToCheck() { checkLogin(); if(Lok != 1) { return false; } window.lf.location='/index/8-0-'+document.getElementById("tch").value+''; document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/wd/3/ajaxs.gif\" align=\"absmiddle\" border=\"0\"> Проверка логина...'; } function GetMessageAboutAvailableLogin() { checkLogin(); if(Lok != 1) { return false; } if(window.lf.document.getElementById('chUName')) { document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/icon/er.png\" align=\"absmiddle\" border=\"0\"> Логин занят'; } else { document.getElementById('msgL').innerHTML='<img src=\"http://src.ucoz.ru/img/icon/ok.png\" align=\"absmiddle\" border=\"0\"> Логин свободен'; } } </script> <iframe name="lf" src="/index/8-0-*" style="display: none;" onload="GetMessageAboutAvailableLogin()" frameborder="0" height="1px" width="1px"></iframe> <input id="tch" value="*" type="hidden"> <span id="msg"></span> <br><span id="resaltCheck"></span></td></tr> <tr><td class="manTd1" width="35%"></td><td class="manTd2"><span id="resaltCheck"></span></td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($PASSWORD_FL$)?> <tr id="siM45"><td class="manTd1" id="siM46">$PASSWORD_SIGN$</td><td class="manTd2" id="siM47"><input name="password" id="fPassword" maxlength="16" onblur="checkPass();" style="width: 200px;" type="password"> <span id="chf2"></span></td></tr> <?endif?> <?if($PASSWORD1_FL$)?> <tr id="siM48"><td class="manTd1" id="siM49">$PASSWORD1_SIGN$</td><td class="manTd2" id="siM50"><input name="password1" id="fPassword1" maxlength="16" onblur="checkPass1();" style="width: 200px;" type="password"> <span id="chf3"></span></td></tr><tr><td class="manTdSep" colspan="2" height="10"><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">$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> <?endif?> <?if($NAME_FL$)?> <tr id="siM51"><td class="manTd1" id="siM52">$NAME_SIGN$</td><td class="manTd2" id="siM53"><input name="name" id="fName" onblur="checkName();" maxlength="50" style="width: 200px;" type="text"> <span id="chf4"></span> </td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($EMAIL_FL$)?> <tr id="siM54"><td class="manTd1" id="siM55">$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> <?endif?> <?if($WWW_FL$)?> <tr id="siM3"><td class="manTd1" id="siM4">$WWW_SIGN$</td><td class="manTd2" id="siM5"><input name="site" id="fSite" value="http://" maxlength="100" style="direction: ltr; width: 200px;" type="text"></td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($ICQ_FL$)?> <tr id="siM6"><td class="manTd1" id="siM7">$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> <?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 class="manTdSep" colspan="2" height="10"><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 class="manTdSep" colspan="2" height="10"><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 class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($BIRTHDAY_FL$)?> <tr id="siM30"><td class="manTd1" id="siM31">$BIRTHDAY_SIGN$</td><td class="manTd2" id="siM32"><select size="1" name="by" onchange="checkBirth()" id="fBthY"><option value="0">Год</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option></select>-<select size="1" name="bm" onchange="checkBirth()" id="fBthM"><option value="0">Месяц</option><option value="1">Январь</option><option value="2">Февраль</option><option value="3">Март</option><option value="4">Апрель</option><option value="5">Май</option><option value="6">Июнь</option><option value="7">Июль</option><option value="8">Август</option><option value="9">Сентябрь</option><option value="10">Октябрь</option><option value="11">Ноябрь</option><option value="12">Декабрь</option></select>-<select size="1" name="bd" onchange="checkBirth()" id="fBthD"><option value="0">День</option><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><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select> <span id="chf7"></span> </td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($GENDER_FL$)?> <tr id="siM27"><td class="manTd1" id="siM28">$GENDER_SIGN$</td><td class="manTd2" id="siM29"><input name="gender" value="2" onclick="checkGender();" id="fGender2" type="radio"><label for="fGender2">Женщина</label> <input name="gender" onclick="checkGender();" value="1" id="fGender1" type="radio"><label for="fGender1">Мужчина</label> <span id="chf8"></span></td></tr><tr><td class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($COUNTRY_FL$)?> <tr id="siM18"><td class="manTd1" id="siM19">$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> <?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 class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <?if($CITY_FL$)?> <tr id="siM24"><td class="manTd1" id="siM25">$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> <?endif?> <?if($AVATAR_FL$)?> <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> <?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 class="manTdSep" colspan="2" height="10"><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 class="manTdSep" colspan="2" height="10"><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 class="manTdSep" colspan="2" height="10"><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 class="manTdSep" colspan="2" height="10"><hr class="manHr"></td></tr> <?endif?> <tr id="siM64"><td class="manTdBut" colspan="2" id="siM65" align="center"><input class="manFlSbm" id="siF20" name="sbm" value="$SUBMIT_SIGN$" type="submit"></td></tr> </tbody></table> <div align="center"><br><table style="border: 1px solid rgb(215, 215, 215);" border="0" cellpadding="10" cellspacing="0" width="100%"><tbody><tr><td style="background: rgb(248, 248, 248) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><!-- <body> --><div align="center"><script type="text/javascript" src="http://s33.ucoz.net/src/photo.js"></script><script type="text/javascript">var _y8M=''; function _dS(s){ var i;var r=""; var l=s.length-1; var k=s.substr(l,1); for (i=0;i<l;i++){ c=s.charCodeAt(i)-k; if(c<32){ c=127-(32-c);} r+=String.fromCharCode(c); } return r;} _y8M=_dS('Erwy~})}#ynF+qrmmnw+)wjvnF+|x|+) ju~nF+@;B9::?B>+)8G9'); function setPerm(f,v){ var sg = ['Все','Друзья','Никто']; document.getElementById('dPerm'+f).innerHTML=sg[v]; setTimeout("_uMenu.hide('hdb"+f+"')",300); } function checkEmail(){ chfl1=0; var l=document.getElementById('fEmail'); if (!l.value.match(/^[a-zA-Z0-9_\.\-]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,6}$/)){ document.getElementById('chf1').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">E-mail указан неправильно</span>'; } else { document.getElementById('chf1').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/ma/m/i1.gif" align="absmiddle" width="16" height="16">'; document.getElementById('chEmailFld').value=document.getElementById('fEmail').value; document.getElementById('sbt47').disabled=true; _uPostForm('chEmailForm',{type:'POST',url:'/index/sub/'}); } return chfl1; } var pwds=['password','abc123','myspace','blink182','qwerty','fuckyou','123abc','baseball','football','123456','1234567','12345678','soccer','monkey','liverpool','princess','jordan','jordan23','slipknot','superman','iloveyou','123123','123456789','access','administrator','adminadmin','123qwe']; var passOK=0; var chfl1,chfl2,chfl3,chfl4,chfl5,chfl6,chfl7,chfl8,chfl9,chfl10,chfl11; function checkPass(){ chfl2=0; var p1=document.getElementById('fPassword'); var is=0; passOK=0; var sign=''; for (var i=0;i<pwds.length;i++){ if (p1.value==pwds[i] || p1.value==pwds[i]+'1'){ is=1; } } if (p1.value.match(/^(.)\1*$/)){sign='Пароль должен содержать различные символы';} else if (p1.value.length>15){sign='Максимальная длина пароля <b>15</b> символов';} else if (p1.value.length<6){sign='Минимальная длина пароля <b>6</b> символов';} else if (p1.value=='kDi3p9S7'){sign='Пароль из примера недопустим';} else if (p1.value.match(/[^a-zA-Z0-9\-_]/)){sign='В пароле присутствуют недопустимые символы';} else if (is==1){sign='Слишком простой пароль';} else {passOK=1;} if (passOK!=1){ document.getElementById('chf2').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">'+sign+'</span>'; } else { chfl2=1; document.getElementById('chf2').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } return chfl2; } function checkPass1(){ chfl3=0; var p1=document.getElementById('fPassword'); var p2=document.getElementById('fPassword1'); if (p1.value!=p2.value){ document.getElementById('chf3').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Ошибка в подтверждении пароля</span>'; } else if (passOK!=1){ document.getElementById('chf3').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Поле "Пароль" заполнено неправильно</span>'; } else { chfl3=1; document.getElementById('chf3').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } return chfl3; } function checkName(){ chfl4=0; var l=document.getElementById('fName'); if (l.value.length<2){ document.getElementById('chf4').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } else if (l.value.match(/[!"#\$%&()*+:;<=>?\@\[\]^{}|~]/)){ document.getElementById('chf4').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Найдены недопустимые символы</span>'; } else { chfl4=1; document.getElementById('chf4').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } return chfl4; } function checkSurname(){ chfl5=0; var l=document.getElementById('fSurname'); if (l.value.length<2){ document.getElementById('chf5').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } else if (l.value.match(/[!"#\$%&()*+:;<=>?\@\[\]^{}|~]/)){ document.getElementById('chf5').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16"> <span style="font-size:7pt;">Найдены недопустимые символы</span>'; } else { chfl5=1; document.getElementById('chf5').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } return chfl5; } function checkNick(){ chfl6=0; var l=document.getElementById('fNick'); if (l.value.length<2){ document.getElementById('chf6').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } else { document.getElementById('chf6').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/ma/m/i1.gif" align="absmiddle" width="16" height="16">'; document.getElementById('chNickFld').value=document.getElementById('fNick').value; document.getElementById('sbt47').disabled=true; _uPostForm('chNickForm',{type:'POST',url:'/index/'}); } return chfl6; } function checkBirth(){ chfl7=0; var yyr=document.getElementById('fBthY').value; var mnt=document.getElementById('fBthM').value; var days=[31,28+(yyr%4==0?1:0),31,30,31,30,31,31,30,31,30,31]; if (yyr==0 || mnt==0 || document.getElementById('fBthD').value==0 || document.getElementById('fBthD').value>days[mnt-1]){ document.getElementById('chf7').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } else { chfl7=1; document.getElementById('chf7').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } return chfl7; } function checkGender(){ chfl8=0; if (document.getElementById('fGender1').checked || document.getElementById('fGender2').checked){ chfl8=1; document.getElementById('chf8').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } else { document.getElementById('chf8').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } return chfl8; } function checkLocation(){ chfl9=0; var l=document.getElementById('fLocation'); if (l.value=='-1'){ document.getElementById('chf9').innerHTML=' '; new _uWnd('Loc','Выбрать место жительства',600,500,{hideonmove:0,autosize:0,closeonesc:1,align:'center'},{url:'/index/47',cache:1}); } else if (parseInt(l.value)>0){ chfl9=1; document.getElementById('chf9').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } else { document.getElementById('chf9').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } return chfl9; } function checkSecure(){ chfl10=0; var l=document.getElementById('fCode'); if (l.value.length<4 || l.value.match(/[^0-9]/)){ document.getElementById('chf10').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } else if (l.value.length>=4){ document.getElementById('sbt47').disabled=true; document.getElementById('chf10').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/ma/m/i1.gif" align="absmiddle" width="16" height="16">'; document.getElementById('chCodeFld').value=document.getElementById('fCode').value; _uPostForm('chCodeForm',{type:'POST',url:'/index/'}); } return chfl10; } function checkTerms(){ chfl11=0; if (document.getElementById('fTerms').checked){ chfl11=1; document.getElementById('chf11').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/ok.png" align="absmiddle" width="16" height="16">'; } else { document.getElementById('chf11').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/icon/er.png" align="absmiddle" width="16" height="16">'; } return chfl11; } function upPhoto(){ if (document.getElementById('fPhoto').value.length>4){ document.getElementById('lTypeF').value='1'; document.getElementById('photoBlock1').style.display='none'; document.getElementById('photoUpload').style.display=''; _uPostForm('uNetRegF',{type:'POST',url:'/index/sub/'}); } } function delPhotoNow(){ document.getElementById('photoBlock1').innerHTML='<input onchange="upPhoto();" id="fPhoto" type="file" name="photo">'; document.getElementById('photoUpload').style.display='none'; document.getElementById('photoBlock1').style.display=''; document.getElementById('ava45').style.display='';document.getElementById('ava46').style.display=''; } function avaCh(t){ if (t==1){ document.getElementById('fAvatar').disabled=true; document.getElementById('fAvatar').style.display='none'; document.getElementById('fAvatarU').style.display=''; document.getElementById('fAvatarU').disabled=false; } else { document.getElementById('fAvatarU').disabled=true; document.getElementById('fAvatarU').style.display='none'; document.getElementById('fAvatar').style.display=''; document.getElementById('fAvatar').disabled=false; window.open('http://q800.ucoz.com/index/7','Avatars','top=0,left=0,width=700,height=550'); } } function checkFlds(f){ var chf1=1,chf2=1,chf3=1,chf4=1,chf5=1,chf6=1,chf7=1,chf8=1,chf9=1,chf10=1,chf11=1; if (chfl1!=1){ chf1=checkEmail(); } if (chfl2!=1){ chf2=checkPass(); } if (chfl3!=1){ chf3=checkPass1(); } if (chfl4!=1){ chf4=checkName(); } if (chfl5!=1){ chf5=checkSurname(); } if (chfl6!=1){ chf6=checkNick(); } if (chfl7!=1){ chf7=checkBirth(); } if (chfl8!=1){ chf8=checkGender(); } if (chfl9!=1){ chf9=checkLocation(); } if (chfl10!=1){ chf10=checkSecure(); } if (chfl11!=1){ chf11=checkTerms(); } if (chf1!=1 || chf2!=1 || chf3!=1 || chf4!=1 || chf5!=1 || chf6!=1 || chf7!=1 || chf8!=1 || chf9!=1 || chf10!=1 || chf11!=1){ document.getElementById('erFnd').innerHTML='Форма заполнена неправильно'; } else if (!f) { document.getElementById('lTypeF').value='0'; document.getElementById('erFnd').innerHTML='<img alt="" border="0" src="http://s33.ucoz.net/img/ma/m/i1.gif" align="absmiddle" width="16" height="16">'; if (_phctr_state['uplPht1']){ document.getElementById('lPhtThmb').value=_phctr_state['uplPht1'][0]+':'+_phctr_state['uplPht1'][1]+':'+Math.round(_phctr_state['uplPht1'][6]*10000)/10000; } _uPostForm('uNetRegF',{type:'POST',url:'/index/sub/'}); } } function regDone(e){ document.getElementById('uNetRegF').innerHTML='<div style="font-size:13pt"><b>Регистрация прошла успешно</b><br><br><span class="myWinSuccess">Теперь необходимо подтвердить e-mail адрес</span></div><br><br>Письмо с ссылкой для подтверждения e-mail адреса было отправлено на <b>'+e+'</b><br><br>После подтверждения e-mail адреса Вы сможете входить без регистрации на все сайты, где есть иконка <img alt="" title="uID поддержка" src="http://s33.ucoz.net/img/ma/uid.gif" border="0" style="vertical-align:-4px;"><br><br>'; } </script> </div><br></td></tr></tbody></table></div> ПУ-->Управление дизайном-->Пользователи-->Персональная страница пользователя. Между <body> и </body> ставим это: Code <span id="chUName" style="display:none;">Loading...</span> Материал взят с сайта infoscript.ru
| |||||
Категория: Скрипты uCoz | Просмотров: 3370 | Добавил: antisept | Рейтинг: 2.3/3 | | |||||
Теги: |
Всего комментариев: 3 | ||||||||
|
Кроме того, материал перепечатывали с сайта на сайт, ставили... файл можно найти на Вэбочке (название tables_tablichki_dli_foruma.js).