Comment insérer le Service de Rappel
  1. créer un bloc dans la page
  2. aller à l'onglet "corps"
  3. cliquer sur
  4. insérer le code suivant:
Code HTML
<div class="eaKeep">
<SCRIPT src="../../../third-parties/yav/js_compact/yav.js">&nbsp;</SCRIPT>
<SCRIPT src="../../../third-parties/yav/js_compact/yav-config-fr.js">&nbsp;</SCRIPT>
<SCRIPT>
    var rulesr=new Array();
    rulesr[0]='nom|required';
    rulesr[1]='telephone|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.nom.value == document.callForm.nom.name ) {
            document.callForm.nom.value = '';
        }
        if (document.callForm.telephone.value == document.callForm.telephone.name ) {
            document.callForm.telephone.value = '';
        }
    }        
    function nbReText() {
        if (document.callForm.nom.value == '' ) {
            document.callForm.nom.value = document.callForm.nom.name;
        }
        if (document.callForm.telephone.value == '' ) {
            document.callForm.telephone.value = document.callForm.telephone.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 border="0" width="100%" class="contactTable">
        <tbody>
            <tr>
                <th colspan="7">Service de rappel</th>
            </tr>
            <tr>
                <td width="30"><img height="16" width="24" alt="" src="../../../iwetc/res/img/callMeBack.jpg" /></td>
                <td><input value="nom" name="nom" onfocus="nbFocus(this)" style="width: 100%;" onblur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td><input value="telephone" name="téléphone" onFocus="nbFocus(this)" style="width: 100%;" onBlur="nbBlur(this)" /></td>
                <td width="5">&#160;</td>
                <td width="50">&#160;<input type="hidden" value="Service de Rappel" name="formTitle" /><input type="submit" value="  envoi  " name="envoi" /></td>
            </tr>
        </tbody>
    </table>
</form>
</div>
 
Qu'est-ce que c'est EditArea? | Evaluation gratuite | Prix
made in EditArea