<style type="text/css">
<!--
#tooltip {
position: absolute;
visibility: hidden;
border: 1px solid;
padding: 3px 5px;
background: #fff;
margin: 0;
font: 11px/13px verdana,arial,sans-serif;
}
-->
</style>
<script type="text/javascript"><!--
// well here it is. the script. use it as you will. or not at all.
// paul
if(!document.getElementById) { window.location.href = "http://webstandards.org/upgrade/"; }
window.onload = function(e) {
if(document.createElement) tooltip.d();
}
tooltip = {
t: document.createElement("div"),
c: null,
g: false,
m: function(e) {
if(tooltip.g) {
x = window.event ? event.clientX + document.body.scrollLeft : e.pageX;
y = window.event ? event.clientY + document.body.scrollTop : e.pageY;
tooltip.a(x,y);
}
},
d: function() {
tooltip.t.setAttribute("id","tooltip");
document.body.appendChild(tooltip.t);
a = (document.all) ? document.all : document.getElementsByTagName("*");
for(var i=0; i<a.length; i++) {
if(a[i].getAttribute("title")) {
a[i].setAttribute("text",a[i].getAttribute("title"));
a[i].removeAttribute("title");
if(a[i].getAttribute("alt") && a[i].complete) a[i].removeAttribute("alt");
tooltip.l(a[i],"mouseover",tooltip.s);
tooltip.l(a[i],"mouseout",tooltip.h);
} else if(a[i].getAttribute("alt") && a[i].complete) {
a[i].setAttribute("text",a[i].getAttribute("alt"));
a[i].removeAttribute("alt");
tooltip.l(a[i],"mouseover",tooltip.s);
tooltip.l(a[i],"mouseout",tooltip.h);
}
}
document.onmousemove = tooltip.m;
},
s: function(e) {
d = (window.event) ? window.event.srcElement : e.currentTarget;
tooltip.t.appendChild(document.createTextNode(d.getAttribute("text")));
tooltip.c = setTimeout("tooltip.t.style.visibility = 'visible';",500);
tooltip.g = true;
},
h: function(e) {
tooltip.t.style.visibility = "hidden";
if (tooltip.t.firstChild) tooltip.t.removeChild(tooltip.t.firstChild);
clearTimeout(tooltip.c);
tooltip.g = false;
tooltip.a(-99,-99);
},
l: function(o,e,a) {
if(o.addEventListener) o.addEventListener(e,a,true);
else if(o.attachEvent) o.attachEvent("on"+e,a);
else return null;
},
a: function(x,y) {
tooltip.t.style.left = x + 8 + "px";
tooltip.t.style.top = y + 8 + "px";
}
}
< /script >