In a totally unobtrusive way for both (x)html and javascript events/functionality, this plug-in allows you to add, and remove, smiles in an entire document or only in some specified element.
Basic examples
$(function(){ $(document.body).smile(); });
You can specify only one or more elements too.
$("div.post, p.comments").smile();
And remove them whenever you want.
$("div.post, p.comments").smile(false);
The optional argument is true by default and the method return the instance itself.
$(document.body).smile().find("a").click(/*doStuff*/);