
January 10th, 2004
10:23 AM
getting smilies inserted to textarea
hi.
i have an html form, with a textarea. to the right of it is a list of smilies. i'd like to be able to click on those smilies to insert their "values" in that textarea. i'm sure it's javascript... just like however this forum does it. any help would be appreciated.

January 10th, 2004
07:39 PM
Here is a simple example to insert text into a textarea:
<form action="changeme.html" method="post" name="message">
<script language="javascript">
function insertext(text){
document.message.message.value+=""+ text;
}
</script>
<a href="javascript:insertext('<b></b>')">Bold Text</a>
<a href="javascript:insertext('<i></i>')">Italic Text</a>
<br><textarea name="message" cols=40 rows=8></textarea>
</form>
Do not change the name in the form tag unles you know what you are doing. I hope this gets you going in the right direction.
___________________
Game servers, need one? CS, CZ, DOD danieljmccoy@hotmail.com

August 25th, 2004
09:19 AM
Just me visit flix.tk
Status: Offline!
ehm how woul that work if the smilies are in an iframe ???? :confused:
___________________
I LOVE TUTORIALFORUMS.com !!