jamiller
01-26-2007, 05:20 AM
After searching the internet for almost all day today I am finally going to ask for some help.
I have a text link that once the user clicks on it a div will appear via CSS visibility just above the link. This is what I have now. I just need a better function for determining the mouse position:
function labPop(divid) {
var epos = window.event;
document.getElementById(divid).style.visibility = 'visible';
document.getElementById(divid).style.left = epos.clientX;
document.getElementById(divid).style.top = epos.clientY;
}
Thanks for any and all help!
I have a text link that once the user clicks on it a div will appear via CSS visibility just above the link. This is what I have now. I just need a better function for determining the mouse position:
function labPop(divid) {
var epos = window.event;
document.getElementById(divid).style.visibility = 'visible';
document.getElementById(divid).style.left = epos.clientX;
document.getElementById(divid).style.top = epos.clientY;
}
Thanks for any and all help!