Smilieys et textarea

dclick07 Messages postés 43 Date d'inscription mercredi 22 novembre 2006 Statut Membre Dernière intervention 26 février 2008 - 26 févr. 2008 à 21:43
malalam Messages postés 10839 Date d'inscription lundi 24 février 2003 Statut Membre Dernière intervention 2 mars 2010 - 26 févr. 2008 à 23:42
Bonjour,
voici mon probleme, le script ne fonctionne pas.

 {literal}
<script>
function addSmiley(emoticon)
{
document.signform.comment_body.value=document.signform.comment_body.value+emoticon;
document.signform.comment_body.focus();
return;
}
</script>

{/literal}
        <form name='signform' action='profile_comments.php' method='post' target='AddCommentWindow' onSubmit='checkText()'>
        <textarea name='comment_body' id='comment_body' rows='4' class="ifrmAltaTxtArea" cols='65' onfocus='removeText(this)' onblur='addText(this)' style='color: #888888; width: 100%;'>{$profile44}</textarea>

          <table cellpadding='0' cellspacing='0' width='100%'>
          <tr>
          <td>

 {literal}   
      [javascript: addSmiley(':)')
      ]
      [javascript: addSmiley(':((')
      ]
      [javascript: addSmiley(':O')
      ]
      (Prochainement)
     
{/literal}

</td>
          {if $setting.setting_comment_code == 1}
            <td width='75' valign='top'></td>
            <td width='68' style='padding-top: 4px;'></td>
            <td width='10'></td>
          {/if}
          <td align='right' style='padding-top: 5px;'>
         
          user_info.user_username}'>
         
          </form>
          </td>
      </tr>

Les smileys n'affichent pas dans le textearea, si vous avez sois des solutions ou sinon d'autre script que ce sois php ou javascript svp m'aider !!

1 réponse

malalam Messages postés 10839 Date d'inscription lundi 24 février 2003 Statut Membre Dernière intervention 2 mars 2010 25
26 févr. 2008 à 23:42
Hello,

cf ta 2de question juste au-dessus.
0
Rejoignez-nous