(НЕ РЕКЛАМА) просто хочу чтобы оценили в риале (мой первый скрипт):)
ставим куда угодно только не в CSS
Code
<?if($USER_ID$=0)?>
<script type="text/javascript">
window.onload = function PlsReg() {openLayerB('PlsReg',0,'/login.xml','Внимание',335,300,1,0,0);}
</script>
<?endif?>
Просила для входа на сайт By X.N.R
ajax окно :
Code
<ajax>
<cmd p="title">
<![CDATA[Форма входа]]>
</cmd>
<cmd p="js">
<![CDATA[ sendFrm555=function(){ $('#msgL555').html('<div class="myWinLoadS"></div>'); _uPostForm('frmLg555',{type:'POST',url:'/index/sub/',error:function(){ _uButtonEn('sbtL555',1); $('#msgL555').html('<div class="myWinLoadSF" title="Невозможно выполнить запрос, попробуйте позже"></div>'); _uWnd.alert('<div class="myWinError">Невозможно выполнить запрос, попробуйте позже</div>','',{w:250,h:90,tm:3000,pad:'15px'}); } }); } ]]>
</cmd>
<cmd p="content">
<![CDATA[<div align="left"> <form id="frmLg555" method="post" style="margin:0" onsubmit="sendFrm555();return false;"> <table border="0" cellpadding="1" cellspacing="0" width="100%"> <tr> <td width="35%" nowrap="nowrap">Логин:</td> <td><input type="text" name="user" style="width:95%" maxlength="50" /></td> </tr> <tr> <td>Пароль:</td> <td><input type="password" name="password" style="width:95%" maxlength="15" /></td> </tr> </tr> <tr> <td nowrap="nowrap"> <input id="rem555" type="checkbox" name="rem" value="1" checked /><label for="rem555">запомнить</label> </td> <td valign="top"> <table border="0" cellpadding="0" cellspacing="0"><tr><td> <table border="0" cellpadding="0" cellspacing="0" onmousedown="this.className='downBtn'" onmouseover="this.className='overBtn'" onmouseout="this.className='outBtn'"> <tr> <td class="myBtnLeft"><img alt="" border="0" src="http://s32.ucoz.net/img/1px.gif"></td> <td class="myBtnCenter"><div class="myBtnCont x-unselectable" unselectable="on" onclick="if (this.dis){return;} this.className='myBtnCont x-unselectable myBtnDis'; this.dis=true; document.getElementById('submfrmLg555').click();" id="sbtL555"><a href="javascript://" onclick="return false;">Вход</a></div></td> <td class="myBtnRight"><img alt="" border="0" src="http://s32.ucoz.net/img/1px.gif"></td> <td style="visibility:hidden;"><input type="image" src="http://s32.ucoz.net/img/ma/1px.gif" style="width:1px;" name="submfrmLg555" id="submfrmLg555" /></td> </tr> </table> </td><td style="padding-left:4px" id="msgL555"></td></tr></table> </td> </tr> <tr> <td style="font-size:7pt;text-align:center;padding-top:5px;" colspan="2"><a href="javascript://" rel="nofollow" onclick="new _uWnd('Prm','Напоминание пароля',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});_uWnd.findparent(this).close();return false;">Забыл пароль</a> · <a href="/index/3">Регистрация</a></td> </tr> </table> <input type="hidden" name="a" value="2" /><input type="hidden" name="ajax" value="2" /></form> </div>]]>
</cmd>
</ajax>