MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
  • Pagina 1 din 1
  • 1
Forum » uCoz system » Alte » Forma de logare
Forma de logare
Muşatinu Date: Duminică, 2011-11-13, 23:27 | Message # 1
Mesaje: 1801
Awards: 202
« 52 »


Dupa <body> peste tot puneti:

<link id="dyncss" rel="stylesheet" type="text/css" href="">   
   <script type="text/javascript">   
   function setDynCSS(url) {   
   if (!arguments.length) {   
   url = (url = document.cookie.match(/\bdyncss=([^;]*)/)) && url[1];   
   if (!url) return '';   
   document.getElementById('dyncss').href = url;   
   var d = new Date();   
   d.setFullYear(d.getFullYear() + 1);   
   document.cookie = ['dyncss=', url, ';expires=', d.toGMTString(), ';path=/;'].join('');   
   return url;   
   <script type="text/javascript">   
   $(document).ready(function() {   
   //select all the a tag with name equal to modal   
   $('a[name=modal]').click(function(e) {   
   //Cancel the link behavior   
   //Get the A tag   
   var id = $(this).attr('href');   
   //Get the screen height and width   
   var maskHeight = $(document).height();   
   var maskWidth = $(window).width();   
   //Set heigth and width to mask to fill up the whole screen   
   //transition effect   
   //Get the window height and width   
   var winH = $(window).height();   
   var winW = $(window).width();   
   //Set the popup window to center   
   $(id).css('top', winH/2-$(id).height()/2);   
   $(id).css('left', winW/2-$(id).width()/2);   
   //transition effect   
   //if close button is clicked   
   $('.window .close').click(function (e) {   
   //Cancel the link behavior   
   $('#mask, .window').hide();   
   //if mask is clicked   
   $('#mask').click(function () {   
   <div id="boxes">   
   <div id="webo4ka-vhod" class="window">   

   <div class="login-box">   
   <div class="log-box-l">   
   <div class="log-box-r">   
   <div class="close-div"><a href="#" class="close"></a></div>   
   <div class="text270deg">Autorizare</div>   
   <div class="popup-body">   
   <!-- START -->   
   <div class="log-vhod">   
   <z style="float: left; width: 245px; position: absolute; margin: 16px 0 0 72px;">$LOGIN_FORM$</z>   
   <div class="poptext">   
   <li><a id="b1" href="/index/0-2">Reguli</a></li>   
   <li><a id="b2" href="javascript://" rel="nofollow" onclick="new _uWnd('Prm','Recuperează parola',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});return false;">Aţi uitat parola?</a></li>   
   <li><a id="b3" href="$REGISTER_LINK$">Înregistrare</a></li>   
   <!-- END -->   
   <div class="clr"></div>   

Unde doriti sa apara link-ul la forma de logare puneti:

<a href="#webo4ka-vhod" name="modal" class="but_1"><span style="padding:0 18px 0 0;">Intră</span></a>

In forma de logare a utilizatorilor totul schimbati cu:
<div class="lfield" >   
   <p>Login Utilizator:</p>   
   <input class="loginField" type="text" name="user" id="login_name" onblur="if (value == '') {value = 'Your username'}" onfocus="if (value == 'Your username') {value =''}" value="Your username"/>   
   <input class="loginField" type="password" name="password" id="login_password" onblur="if (value == '') {value = 'Your Password'}" onfocus="if (value == 'Your Password') {value =''}" value="Your Password"/>   
   <div valign="top">   
   <input class="but-log" name="sbm" alt="Intră" type="submit" value=""/>   
   <input name="login" type="hidden" id="login" value="submit" />   
   <style>.lfield input {width: 100%;}</style>


Traducere si modificatii:


Forum » uCoz system » Alte » Forma de logare
  • Pagina 1 din 1
  • 1