I am trying to get the position of the text/mouse when the user hovers of the text. I have tried to use teh event.clientx, but it aligns the text that I have pop up in the wrong place. I am basically trying to eliminate hard coding the pixel position that I currently use because I want to dynamically generate the pixel number so I don't have to change every number when I add a new one. Any help would be great, thanks.
<Div name="empCountDiv" id="empCountDiv" style="position: absolute; visibility: hidden; background: white; color: black; font-size: 15px">
Listing of all employees by department and by employee type (Full time, students, and temps).
</Div>
<Font onmouseover="empCount(true);" onmouseout="empCount(false);">     <a href=empcount.asp>Employee Count</a></Font><BR>
<Script>
function empCount(a) {
if (a) {
empCountDiv.style.top = 278;
empCountDiv.style.left = 270;
empCountDiv.style.width = 500;
empCountDiv.style.visibility = "visible";
}
else
empCountDiv.style.visibility = "hidden";
//**************************************
}
</Script>
<Div name="empCountDiv" id="empCountDiv" style="position: absolute; visibility: hidden; background: white; color: black; font-size: 15px">
Listing of all employees by department and by employee type (Full time, students, and temps).
</Div>
<Font onmouseover="empCount(true);" onmouseout="empCount(false);">     <a href=empcount.asp>Employee Count</a></Font><BR>
<Script>
function empCount(a) {
if (a) {
empCountDiv.style.top = 278;
empCountDiv.style.left = 270;
empCountDiv.style.width = 500;
empCountDiv.style.visibility = "visible";
}
else
empCountDiv.style.visibility = "hidden";
//**************************************
}
</Script>