Servicio rellamada - EditArea MX
 

Servicio rellamada

rellamada.jpg

Como incluir el "Servicio Rellamada"


  1. crear un bloque en la página
  2. ir a la pestaña "cuerpo"
  3. pulsar en 
  4. introducir el siguiente código

Código HTML

<div class="eaKeep"><SCRIPT src="../../../third-parties/yav/js_compact/yav.js">&nbsp;</SCRIPT> <SCRIPT src="../../../third-parties/yav/js_compact/yav-config-es.js">&nbsp;</SCRIPT> <SCRIPT>
    var rulesr=new Array();
    rulesr[0]='nombre|required';
    rulesr[1]='telefono|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.nombre.value == document.callForm.nombre.name ) {
            document.callForm.nombre.value = '';
        }
        if (document.callForm.telefono.value == document.callForm.telefono.name ) {
            document.callForm.telefono.value = '';
        }
    }        
    function nbReText() {
        if (document.callForm.nombre.value == '' ) {
            document.callForm.nombre.value = document.callForm.nombre.name;
        }
        if (document.callForm.telefono.value == '' ) {
            document.callForm.telefono.value = document.callForm.telefono.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">Servicio rellamada</th>
            </tr>
            <tr>
                <td width="30"><img width="24" height="16" alt="" src="../../../iwetc/res/img/callMeBack.jpg" /></td>
                <td><input value="nombre" name="nombre" onfocus="nbFocus(this)" style="width: 100%;" onblur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td><input value="teléfono" name="telefono" onFocus="nbFocus(this)" style="width: 100%;" onBlur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td width="50">&#160;                   <input type="hidden" value="Servicio rellamada" name="formTitle" /><input type="submit" value="  envia  " name="envia" /></td>
            </tr>
        </tbody>
    </table>
</form>
</div>