var dvs=[],divs=[];
var i,j,k,pos
var hoverTimer;
ems=document.getElementsByTagName('em');
dvs=document.getElementsByTagName('div');
k=0;
document.writeln("
"+dvs.length+"
");
for (i=0; i");
for (j=0; j");
ems[j].style.cursor='help';
ems[j].style.backgroundColor="#007";
ems[j].onmouseenter = function(evt)
{ var m=evt.target.getAttribute("tip");
x=20+evt.pageX;
y=20+evt.pageY;
if (y+window.pageYOffset>200) y=200+window.pageYOffset;
dvs[divs[m]].style.left=+x+"px";
dvs[divs[m]].style.top =+y+"px";
//dvs[divs[m]].style.top =y+"px";
w=dvs[divs[m]].offsetWidth;
h=dvs[divs[m]].offsetHeight;
hoverTimer = setTimeout(function()
{ dvs[divs[m]].className="tipshow";
dvs[divs[m]].style.opacity=0;
dvs[divs[m]].style.color="#ff0";
timer=setInterval(function(b)
{ b.style.opacity=parseFloat(b.style.opacity)+0.02;
if (b.style.opacity>=1.0) clearInterval(timer);
},20,dvs[divs[m]]);
},1000);
}
ems[j].onmouseout = function(evt)
{ var m=evt.target.getAttribute("tip");
dvs[divs[m]].className="tiphide";
clearTimeout(hoverTimer);
}
}
}
}
}