hi,
i am using a simple script which add a "quick smilies" row in the post comments

the row shows correctly, the problem is the smilies images are not printed into the comment, but it shows only the smiles code

have a look here please


script code:

PHP Code:
<small><strong>Smilies (click to append):</strong> <br /><script type="text/javascript">
        function 
SJB_appendSmiley(text) {
            var 
comment=document.getElementById('comment');
            
comment.value=comment.value+' '+text+' ';
        };
document.write('<a href="javascript:SJB_appendSmiley(\':evil:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_evil.gif" alt=":evil:" class="wp-smiley" title=":evil:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':lol:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_lol.gif" alt=":lol:" class="wp-smiley" title=":lol:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':grin:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":grin:" class="wp-smiley" title=":grin:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':smile:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_smile.gif" alt=":smile:" class="wp-smiley" title=":smile:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':neutral:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_neutral.gif" alt=":neutral:" class="wp-smiley" title=":neutral:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':sad:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_sad.gif" alt=":sad:" class="wp-smiley" title=":sad:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':mad:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_mad.gif" alt=":mad:" class="wp-smiley" title=":mad:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':arrow:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_arrow.gif" alt=":arrow:" class="wp-smiley" title=":arrow:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':?:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_question.gif" alt=":?:" class="wp-smiley" title=":?:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':shock:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_eek.gif" alt=":shock:" class="wp-smiley" title=":shock:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':eek:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_surprised.gif" alt=":eek:" class="wp-smiley" title=":eek:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':cool:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_cool.gif" alt=":cool:" class="wp-smiley" title=":cool:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':mrgreen:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_mrgreen.gif" alt=":mrgreen:" class="wp-smiley" title=":mrgreen:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':wink:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_wink.gif" alt=":wink:" class="wp-smiley" title=":wink:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':twisted:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_twisted.gif" alt=":twisted:" class="wp-smiley" title=":twisted:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':roll:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_rolleyes.gif" alt=":roll:" class="wp-smiley" title=":roll:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':razz:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_razz.gif" alt=":razz:" class="wp-smiley" title=":razz:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':???:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_confused.gif" alt=":???:" class="wp-smiley" title=":???:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':oops:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_redface.gif" alt=":oops:" class="wp-smiley" title=":oops:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':idea:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_idea.gif" alt=":idea:" class="wp-smiley" title=":idea:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':cry:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_cry.gif" alt=":cry:" class="wp-smiley" title=":cry:" />');
document.write('</a> ');

document.write('<a href="javascript:SJB_appendSmiley(\':!:\')">');
document.write('<img src="http://www.sancarlobasket.com/wp-includes/images/smilies/icon_exclaim.gif" alt=":!:" class="wp-smiley" title=":!:" />');
document.write('</a> ');
</script><noscript>You could see clickable smiley faces here if you had JavaScript activated.</noscript></small><br /> 
i've added this in the comments.php