Когда нажимаю на кнопку войти, открывается новая вкладка с содержимым:
Code
<script type="text/javascript">
sendFrm549968=function(){
var o=$('#frmLg549968')[0],pos=_uGetOffset(o),o2=$('#blk549968')[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('frmLg549968',{type:'POST',url:'/index/sub/',error:function() {
$('#blk549968').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("$('#blk549968').css('display','none');",'1500');
}
});
}
</script>
<div id="blk549968" style="border:1px solid #CCCCCC;position:absolute;z-index:82;background:url('http://s22.ucoz.net/img/fr/g.gif');display:none;"></div>
<form id="frmLg549968" action="/index/sub/" method="post" style="margin:0" onsubmit="sendFrm549968();return false;">
<h1>Панель управления:</h1>
<div class="loginbox">
<div class="nickname fl"> <input class="loginField" type="text" name="user" value=""/>
</div>
<div class="pass fl">
<input class="loginField" type="password" name="password" />
</div>
<div class="fr">
<button class="fbut" name="sbm" type="submit" value="Вход" title="Войти"></button>
</div>
<input name="login" type="hidden" id="login" value="submit" />
<img src="/img/ok.gif" alt="Регистрация на сайте!" /><a href="$REGISTER_LINK$">Регистрация на сайте!</a>
<input type="hidden" name="a" value="2" /><input type="hidden" name="ajax" value="1" /><input type="hidden" name="rnd" value="968" /></form>
А если логин или пароль не верны, то:
Code
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ajax>
<cmd p="innerHTML" t="blk549035">
<![CDATA[
<div align="left" style="padding:10px;"><div class="myWinLoadSF" title="Неправильный логин или пароль"></div></div>
]]>
</cmd>
<cmd p="js">
<![CDATA[
_uWnd.alert('<div style="margin-top:15px" class="myWinError">Неправильный логин или пароль</div>','',{w:250,h:90,tm:5000});setTimeout("$('#blk549035').css('display','none');",'1500')
]]>
</cmd>
</ajax>
Добавлено (20.12.2011, 19:15)
---------------------------------------------
Ой, первый код не тот
Вот тот:
Code
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ajax>
<cmd p="innerHTML" t="blk549035">
<![CDATA[
<div align="left" style="padding:10px;"><div class="myWinLoadSD"></div></div>
]]>
</cmd>
<cmd p="js">
<![CDATA[
var ad=window.location.href.replace(/#(.*)?/,''); setTimeout("window.location.href='"+ad+"?lsMfnE'",'1000')
]]>
</cmd>
</ajax>