Results 1 to 10 of 10

Thread: Adding Text/Images to Textarea *SOLVED*

Threaded View

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Adding Text/Images to Textarea *SOLVED*

    I posted this question

    "Not sure how to explain this so will use this forum as an example. When creating a new post or replying to an existing one if you click one of the smilies it is then added to the message being typed. I am creating a similar process but don't know how to add the smilie to the textarea once it has been clicked.

    This is the reply I got which works fine but how can I made (rolleyes) a variable so I can insert anything??
    Code:
    <html>
    <head>
    <title>
    Example - by Phreak
    </title>
    <script language="javascript">
    function addittotextarea()
    {
    form1.text1.value += ":rolleyes:";
    }
    </script>
    </head>
    <body>
    <form name="form1">
    <textarea name="text1"></textarea>
    <input type="button" onClick="addittotextarea()">
    </form>
    </body>
    </html>
    Last edited by lintz; Sep 6th, 2004 at 06:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width