http://benalman.com/projects/javascript-emotify/
Version: 0.6, Last updated: 11/17/2009
JavaScript Emotify helps make the web a better place, one tiny image at a time... (the original title was "this is what it sounds like when HTML cries" but Prince's lawyers sent me a C&D citing, get this, "bad taste"). Seriously though, this code turns text into "emotified" HTML. You know, like, with smileys.
Visit the project page for more information and usage examples!
http://benalman.com/code/projects/javascript-emotify/docs/
These working examples, complete with fully commented code, illustrate a few ways in which this plugin can be used.
http://benalman.com/code/projects/javascript-emotify/examples/emotify/
http://benalman.com/code/projects/javascript-emotify/examples/adium-emoticonset/
Information about what browsers this code has been tested in.
Internet Explorer 6-8, Firefox 3-3.5, Safari 3-4, Chrome, Opera 9.6-10.
0.6 - (11/17/2009) Minor tweaks and bugfixes
0.5 - (8/17/2009) Initial release
Copyright (c) 2009 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
http://benalman.com/about/license/