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 !!