michelle
08-25-2003, 07:28 AM
I have a function that sometimes gets called from another function and sometimes directly from a link.
To detirmine whether the mouse was clicked or it was called from the function, I have this code, but it only works if I click a link.
I ask myself, why?
function changeLeft(uid) {
if (!event.clientX) {
document.getElementById(uid).style.left = "100";
} else {
document.getElementById(uid).style.left = event.clientX;
}
}
Any thoughts?
// Michelle
To detirmine whether the mouse was clicked or it was called from the function, I have this code, but it only works if I click a link.
I ask myself, why?
function changeLeft(uid) {
if (!event.clientX) {
document.getElementById(uid).style.left = "100";
} else {
document.getElementById(uid).style.left = event.clientX;
}
}
Any thoughts?
// Michelle