That works fine, see below for the code im currently using
<a OnClick="document.form.message.value = document.form.message.value + ' :boxing: '";><img src=default/boxing.gif border=0></a>
However, On clicking the emotion image the code is being inserted at the end of the text in the message box
This still works, but, if someone has typed 3 lines out and decides the want an emoticon on line 2, on clicking the emoticon it is inserted at the end (line 3)
How can I get it to insert the emoticon code where the focus of the cursor is currently at?