• User

    codice

    ciao
    chi mi sa dire cosa vogliono dire questi due codici :bigsmile:

    <div class="content-white-outer" id="login">
        <div class="content-white">
            <div class="content-white-body">
    
    <div class="content-white-content">
    
    <form action="sendo.php" method="post" id="login-form">
    <input type="hidden" name="loginTicket" value="LT-74954-zwPaJMcJWTHKcEsVFCcN-it-fe1" />
    <input type="hidden" name="page" value="/" />
    <input type="hidden" name="service" value="/security_check" />
    
    <p id="login-username-area">
    <label for="login-username" class="registration-text">nome</label><br/>
    <input type="txt" class="required-username" name="nome" id="login-username" value="" />
    
    </p>
    
    <script type="text/javascript" language="JavaScript">
    $("login-username").focus();
    </script>
    
    <p id="login-password-area">
    <label for="login-password" class="registration-text">Password</label><br/>
    <input type="password" class="required-password" name="password" id="login-password" value="" />
    </p>
    
            
    <p class="last">
    <input type="submit" value="Entra" class="process-button" id="login-submit" />
    </p>
    </form>
    
    </div>
            <div class="clear"></div>
            </div>
        </div>
        <div class="content-white-bottom">
            <div class="content-white-bottom-body"></div>
        </div>
    
    <script type="text/javascript" language="JavaScript">
    Event.observe($("registration-form"), "submit", function(e) {
        if ($("day").selectedIndex == 0 || $("month").selectedIndex == 0 || $("year").selectedIndex == 0) {
            validatorBeforeSubmit("registration-errors");
            validatorAddError(false, false, "Inserisci una data corretta", "registration-errors");
            $("required-birthday").className = "validation-failed";
            Event.stop(e);
        } else {
            $("registration-submit").disabled = 'true';
        }
    }, false);
    Event.observe($("login-form"), "submit", function(e) {
        if ($F("login-username") == "" || $F("login-password") == "") {
            validatorBeforeSubmit("login-errors");
            validatorAddError(false, false, "Inserisci il nome e la password.", "login-errors");
            if ($F("login-password") == "") { $("login-password").className = "validation-failed"; $("login-password").focus(); }
            else { Element.removeClassName($("login-password"), "validation-failed"); }
            if ($F("login-username") == "") { $("login-username").className = "validation-failed"; $("login-username").focus(); }
            else { Element.removeClassName($("login-username"), "validation-failed"); }
            Event.stop(e);
        } else {
            $("login-submit").disabled = 'true';
        }
    }, false);
    </script>
    

  • User Attivo

    È un form scritto in html e javascript, probailmente deve essere usato per un interfaccia di login.


  • User

    si ma volevo sapere che azione compione sul testo html XD


  • User Attivo

    Ciao maxin,

    la tua domanda è un po' troppo generica. Cerca di spiegare meglio cosa intendi in modo che possiamo risponderti adeguatamente.