I was designing my own forum. Encounter problem on my emoticons. I've use replace keywords only when i type this..eg.

when i type it will change to the icon.... but this is not I require... Just wonder how to generate source code as the same in this forum whenever i click on those emoticons it will change to symbol...

Anyone can help me this???