Cum puteti insera formularul "Serviciu Telefonic"
  1. creati un bloc nou pe pagina
  2. apasati pe sectiunea "corp"
  3. apasati pe
  4. inserati acest cod:
Cod HTML
<div class="eaKeep"><SCRIPT src="../../../third-parties/yav/js_compact/yav.js">&nbsp;</SCRIPT> <SCRIPT src="../../../third-parties/yav/js_compact/yav-config-ro.js">&nbsp;</SCRIPT> <SCRIPT>
    var rulesr=new Array();
    rulesr[0]='nume|required';
    rulesr[1]='telefon|required';

    function swapDisplay (id){
        if (getStyleObject(id).display=='block'){
            hideCompById(id);
        } else {
            showCompById(id);
        }
    }
    
    function nbFocus(nbItem){
        if (nbItem.value == nbItem.name) {
            nbItem.value='';
        }
    }
    function nbBlur(nbItem){
        if (nbItem.value == '' ) {
            nbItem.value=nbItem.name;
        }
    }    
    function nbSubmit(){
        if (document.callForm.name.value == document.callForm.nume.name ) {
            document.callForm.name.value = '';
        }
        if (document.callForm.telefon.value == document.callForm.telefon.name ) {
            document.callForm.telefon.value = '';
        }
    }        
    function nbReText() {
        if (document.callForm.name.value == '' ) {
            document.callForm.name.value = document.callForm.nume.name;
        }
        if (document.callForm.telefon.value == '' ) {
            document.callForm.telefon.value = document.callForm.telefon.name;
        }
    }        
    function nbCheck(){
        nbSubmit();
        var yavReturn=performCheck('callForm', rulesr, 'classic');
        if (!yavReturn){
            nbReText();
        }
        return yavReturn;
    }    

</SCRIPT>                                  <style type="text/css">
                <!--
                .inputError { border:#FF8000 1px solid; background-color: #FFFFD7; }
                .recallTable { margin-top:10px; border:#999999 1px solid;}
                .recallTable th { background-color:#DDDDDD; font-weight:bold; text-align:left }
                .recallTable ol { padding-left:15px }
                -->
                </style>
<form name="callForm" action="../../../iw/core/main/sendForm.jsp" onsubmit="return nbCheck()" style="margin: 0pt;" class="fckForm">
    <table width="100%" border="0" class="contactTable">
        <tbody>
            <tr>
                <th colspan="7">Serviciu telefonic</th>
            </tr>
            <tr>
                <td width="30"><img width="24" height="16" alt="" src="../../../iwetc/res/img/callMeBack.jpg" /></td>
                <td><input value="nume" name="nume" onfocus="nbFocus(this)" style="width: 100%;" onblur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td><input value="telefon" name="telefon" onFocus="nbFocus(this)" style="width: 100%;" onBlur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td width="50">&#160;                   <input type="hidden" value="Serviciu telefonic" name="formTitle" /><input type="submit" value="  trimite  " name="trimite" /></td>
            </tr>
        </tbody>
    </table>
</form>
</div>
 
  Come funziona | Prova gratuita | Prezzi
made in EditArea