I created my online store almost entirely with Javascript at the following adress : It works fine with MSIE4.5/5/5.5 but from time to time visitors report script errors with MSIE.
I suspect that the reason could be the use of the document.onmousemove object. I found it in a script, but it's not mentionned in any book. I use it to make the Html table follow the mouse.
I use it as follow in my script :
document.onmousemove = aide_souris;
where aide_souris is the following function :
function aide_souris() {
x = event.x + document.body.scrollLeft - 40;
y = event.y + document.body.scrollTop + 20;
if (x < 0) x = 0;
plan_aide.style.left = x;
plan_aide.style.top = y;
}
Is there perhaps a better way to process the mouse position ? Is something wrong with the use of the document.onmousemove object ?
Being an occasionnal programmer, I would appreciate some help.
Detlef
I suspect that the reason could be the use of the document.onmousemove object. I found it in a script, but it's not mentionned in any book. I use it to make the Html table follow the mouse.
I use it as follow in my script :
document.onmousemove = aide_souris;
where aide_souris is the following function :
function aide_souris() {
x = event.x + document.body.scrollLeft - 40;
y = event.y + document.body.scrollTop + 20;
if (x < 0) x = 0;
plan_aide.style.left = x;
plan_aide.style.top = y;
}
Is there perhaps a better way to process the mouse position ? Is something wrong with the use of the document.onmousemove object ?
Being an occasionnal programmer, I would appreciate some help.
Detlef