So I am trying to force every link on my blog to run a script, that show's the title in a css'able bubble rather than the standard yellow box, without having to insert the
onmouseover="tooltip.show('title value here');" onmouseout="tooltip.hide();"
in every <a>
that it requires me to.
I really have no clue about Javascript or how to go about the problem. I googled a similar issue on this site but it didn't really solve anything for me.
This is what I got thus far;
<script> window.onload = function () {
window.document.getElementByAttr("title").onmouseover="tooltip.show("value");" onmouseout="tooltip.hide();"
};
</script>
Site can be found at http://inane.se, it's the function on the search menu that I want to apply on every <a>
Any help would be highly appreciated~
Clarification: I am using Tumblr for the posting and thought it would be faster if I could do this automatically rather than going in to the html editor.