function addCiteLink(ele){ // this really should be done with XBL (waiting for W3C to standardize it and for Opera to support it) // the links generated here also violate several accessibility requirements var i, o, x = document.getElementsByTagName(ele) for(i = 0; o = x[i]; i++) if(o.cite) o.innerHTML += "" } function makeCiteWork(){ addCiteLink("blockquote") addCiteLink("q") } addEventListener("DOMContentLoaded",makeCiteWork, false);