oembed

Javascript

Include jquery and http://oembed.cornhooves.org/js/oembed.js, and for all elements to be supported run the oembed function on all supported a href's like this:

$("a.oembed").oembed();