- First of all download some smiley images and paste them in your website's root folder
- Put a div element inside your aspx page with contentEditable property set to true and onkeyup="replacewithimg(this);"
- txt & img are two Arrays which holds the emotion text and emotion image element source code respectively side by side
[Note: regular.gif, tongue.gif and Sad.gif are the names of my smiley images, Please update them if you have different names]
Download Demo Website