Ho fatto cosi.
codice:
<a href="#" onclick="document.getElementById('textarea').value=document.getElementById('textarea').value+':('">[img]emoticons/1.gif[/img]
Questa è l' input che uso dove ho assegnato l' ID al DIV
codice:
<div id="textarea">
<form action="" method="post" style="margin: 0px; background-color: white; height: 50px; width: 400px;">
<input style="border-style: solid; width: 300px; height: 30px; background-color: white;" name="testo">
<input name="utente" value="<?php print htmlspecialchars($_SESSION['nick']); ?>;" type="hidden">
<input name="submit" value="INVIA" style="border-style: solid; border-color: black; height: 30px; width: 50px; background-color: white; color: black; font-family:Arial; font-weight:bold;" type="submit"></form>
ORA L' IMMAGINE SI VEDE. MA NON FUNGE LA FUNZIONE ONCLICK