Jump to content

Smillies in textareas


graham23s

Recommended Posts

This more a javascript problem.  I had this problem a while ago.  But here is a small example of what I have.

 

http://www.phpfreaks.com/forums/index.php/topic,143516.0.html

 

I will post some more code example in a few hours.  Off to bed now.  But that links should get you started.

Link to comment
https://forums.phpfreaks.com/topic/65027-smillies-in-textareas/#findComment-324529
Share on other sites

This should be in the Javascript section:

 

<SCRIPT LANGUAGE='JavaScript'>
    <!--
    function Smiles(which) {
    document.post.omsg.value = document.post.omsg.value + which;
    }
    
    //-->
    </SCRIPT>
        <textarea name="omsg" cols="50" rows="6"></textarea>

<A HREF="javascript:Smiles('')"><img src="../images/smilies/timeout.gif" BORDER=0 alt=""></A>

 

This is just an example.  You will have to make some small changes of your own for it to work.

Link to comment
https://forums.phpfreaks.com/topic/65027-smillies-in-textareas/#findComment-325155
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.