i am trying to create a textbox which will accept a emoticon image as part of its text.
Any sugestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tell your textbox that you want it to display rich text. When you write text, replace your emoticons with HTML
<img>tags pointing to the emoticon picture.Edit : example with a smiley example (
:-))In your text box, you want to replace the
. Assume that the picture is in a file called “smile.jpg”. When you write text, replace
:-)smiley with this picture ::-)by<img src="my/path/to/smile.jpg" alt=":-)"/>. When you write a backspace to erase the smiley, you can replace the whole HTML<img>tag by:-(:-)without the final))