Суббота, 17.01.2026, 08:22:59 На сайте Московское время



  • Страница 1 из 1
  • 1
Быстрая регистрация для вашего сайта
Sm1leДата: Вторник, 26.10.2010, 14:21:20 | Сообщение # 1

Сообщений: 155
Награды: 2

[ 11 ]


Code
<div style="padding:3px"></div>  
<div class="forumContent"><table border="0" cellpadding="0" height="30" cellspacing="0" width="100%">  
<tr>  
<td align="left">  
<?if($USER_LOGGED_IN$)?>  
<a href="javascript://" rel="nofollow" id="upml" class="fNavLink" onclick="window.open('$PM_URL$','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350');return false;"><input class="buttonprofile" type="button" value="Личные сообщения" ($UNREAD_PM$)</a>    
<?if($IS_NEW_PM$)?><script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml','')",500)</script><bgsound src="http://s42.ucoz.net/img/fr/pm.wav" loop="1" volume="0" balance="0">  
<?endif?><?endif?>  
<?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> <a href="$PERSONAL_PAGE_LINK$" title="Мой профиль"><input class="buttonprofile" type="button" value="Мой профиль"</a><?else?>    
<?if(!$USER_LOGGED_IN$)?>  
<table width="30%" align="left" border="0" cellpadding="0" cellspacing="0"; border-bottom: 1px solid #FFF;">  
<tr>  
<td align="left" width="30%"><div id="vhod">  
<script type="text/javascript">  
sendFrm549936=function(){  
    var o=$('#frmLg549936')[0],pos=_uGetOffset(o),o2=$('#blk549936')[0];  
    document.body.insertBefore(o2,document.body.firstChild);  
    $(o2).css({top:(pos['top'])+'px',left:(pos['left'])+'px',width:o.offsetWidth+'px',height:o.offsetHeight+'px',display:''}).html('<div align="left" style="padding:5px;"><div class="myWinLoad"></div></div>');  
    _uPostForm('frmLg549936',{type:'POST',url:'/index/sub/',error:function() {  
    $('#blk549936').html('<div align="left" style="padding:10px;"><div class="myWinLoadSF" title="Невозможно выполнить запрос, попробуйте позже"></div></div>');  
    _uWnd.alert('<div class="myWinError">Невозможно выполнить запрос, попробуйте позже</div>','',{w:250,h:90,tm:3000,pad:'15px'});  
    setTimeout("$('#blk549936').css('display','none');",'1500');  
    }  
    });  
}  
</script>  
<div id="blk549936" style="border:1px solid #CCCCCC;position:absolute;z-index:82;display:none;"></div><form id="frmLg549936" method="post" style="margin:0" onsubmit="sendFrm549936();return false;">  
<input class="loginField" value="Ваше имя" name="user" onclick="if(this.value=='Ваше имя')this.value=''" onblur="if(this.value=='')this.value='Ваше имя'" type="text">  
<input class="loginField" name="password" value="пароль" onclick="if(this.value=='пароль')this.value=''" onblur="if(this.value=='')this.value='пароль'" type="password">  
<input class="loginButton" name="sbm" type="submit" value="Вход" /></a>  
<input type="hidden" name="a" value="2" /><input type="hidden" name="ajax" value="1" /><input type="hidden" name="rnd" value="936" /></form></div>  
</td></tr></table><?endif?>  
<?if(!$USER_LOGGED_IN$)?><script type="text/javascript" scr="/fast.reg.js"></script><a href="#" onclick="return false" id="fastReg"><input class="buttonprofile" type="button" value="Быстрая регистрация"</a><?endif?><?endif?> <?endif?> <?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?> <a href="$LOGOUT_LINK$" title="Выход"><input class="buttonprofile" type="button" value="Выход"</a></a><?else?> <?endif?><?endif?>    
</td></tr></table>

Вот это вставляем в CSS в любое место
Code
/* регистрация */  
.reg1 {text-align:left;padding:3px;}   
.reg2 {clear:left;float:left;width:160px;}   
.reg1 input[type='text'], .reg1 input[type='password'] {width:160px;}   
#rCode {width:160px; height: 35px; text-align:center; font-weight:bold; font-size:13px; margin-top: 2px;}   
#rRes{font-size: 9px; color:red; display:none;}  
/* ------------- */

В самом конце перед [/body] ставим
Code
<?if(!$USER_LOGGED_IN$)?><script type="text/javascript">    
$(document).ready(function(){    
//Fasr.reg script v 0.1    
//script by http://javascript.ucoz.net    
$("#fastReg").click(function(){new _uWnd('regWin','Быстрая регистрация',350,400,{autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,icon:'http://s40.ucoz.net/.s/img/icon/us.png',min:1,oncontent:function(){getRegData()}},'<div class="reg1"><div class="reg2">Логин:</div><input type="text" id="rLogin"></div><div class="reg1"><div class="reg2">Пароль:</div><input type="password" id="rPass"></div><div class="reg1"><div class="reg2">E-mail:</div><input type="text" id="rMail"></div><div class="reg1"><div class="reg2"><span id="rRes"> </span> </div><input type="button" onclick="rEnd()" id="rEnd" value="Готово"></div>')});$("#rPost").live("click",function(){_uWnd.close('captcha');_code=$("#rCode").val();$.post("/index/",{jkd498:1,act:_act,ssid:_ssid,jkd428:1,sos:_sos,user:$("#rLogin").val(),password:$("#rPass").val(),password1:$("#rPass").val(),name:$("#rL  ogin").val(),email:$("#rMail").val(),code:_code,seckey:_seckey,a:4,s:0},function(i){var error=$('.manTdError',i).html();if(error){if(error=='Неправильный код безопасности'){newCodeImg()}_uWnd.alert('<span style="color:red;"><br>'+error+'</span>','Ошибка',{tm:3500,w:200,h:110})}else{new _uWnd('success','Успешная регистрация',350,350,{modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,icon:'http://s40.ucoz.net/.s/img/icon/us.png',min:1},'<br><font style="color:green"><b>Регистрация прошла успешно!</b></font><br><br><u>Ваши данные</u>:<br> Логин - <b>'+$("#rLogin").val()+'</b>; Пароль - <b>'+$("#rPass").val()+'</b><br><br><input type="button" value="Войти в свой аккаунт" onclick="postLogin();">')}})})});function postLogin(login,pass){new _uWnd('LF',' ',-250,-110,{autosize:0,oncontent:function(){lgin()}},{url:'/index/40'})}function lgin(){$("input[name='user']").val($("#rLogin").val());$("input[name='password']").val($("#rPass").val());$("#submfrmLg555").click()}function rEnd(){if(!$("#rMail").val().match(/^[a-zA-Z0-9_\.\-]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,6}$/)||$("#rLogin").val().match(/^\s+$/)||$("#rLogin").val().length<3||$("#rPass").val().length<4){_uWnd.alert('<span style="color:red;"><br>Проверьте правильность заполнения формы</span>','Ошибка',{tm:3500,w:200,h:110});return}else{new _uWnd('captcha','Код безопасности',300,300,{close:0,modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,oncontent:function(){$('#rCha'  ).html(_img)}},'<span id="rCha"></span><br><input type="text" id="rCode"><br><input type="button" value="OK" id="rPost">')}}function newCodeImg(){$.get("/index/3",function(hj){new_img=$("#secImg",hj).clone();new _uWnd('captcha','Код безопасности',300,300,{close:0,modal:1,autosize:1,fadespeed:100,fadeclosespeed:100,fadetype:1,fadeclosetype:2,oncontent:function(){$('#rCha'  ).html(new_img)}},'<span id="rCha"></span><br><input type="text" id="rCode"><br><input type="button" value="OK" id="rPost">')})}function getRegData(){$.get("/index/3",function(m){_act=$("input[name='act']",m).val(),_ssid=$("input[name='ssid']",m).val(),_seckey=$("input[name='seckey']",m).val(),_img=$("#secImg",m).clone(),_sos=getSession(m)})}function getSession(data){for(var i=0,code=data.match(/_dS\('(.+)'\)/i)[1],_i=code.length-1,session='';i<_i;i++){session+=String.fromCharCode(code.charCodeAt(i)-code.substr(_i,1))};return session.match(/\d+/g)}    
</script>  


[Table]Тех.Поддержка: ICQ:557409623[/Table]
[Table][/Table]

[Table]Помогаю исправлять баги, недоработки, и всяческие неполадки в HTML и CSS сайта ( Платно )[/Table]

[Table]Рипаю скрипты, шаблоны ( Платно )[/Table]

[Table]На остальные вопросы типо: "Почему так", "А скажи как ты это...", "Ну пожалуйста помоги" и тд, не отвечаю![/Table]

 
{kAzAkH}Дата: Среда, 27.10.2010, 12:15:51 | Сообщение # 2

Сообщений: 2
Награды: 0

[ 0 ]

Поподробне ннадо было что куда как
 
AragornDemonДата: Четверг, 28.10.2010, 14:38:08 | Сообщение # 3

FG Fan

Сообщений: 39
Награды: 0

[ 3 ]

Quote ({kAzAkH})
Поподробне ннадо было что куда как

Нормально все написано. Спасибо

 
  • Страница 1 из 1
  • 1
Поиск:


FrozenGames.At.Ua
(c) Все права защищены! 2010
Хостинг от uCoz
New Design Ver. 4.6 by Frozen
Все материалы, размещенные на сайте предназначены исключительно для ознакомления!
Дизайн сайта полностью принадлежит
администратору сайта
Sitemap | Sitemap-forum