hi
can someone give me some advice
the idea of the script is to create tool tips which while over the link or image will move with the mouse position
i know i can use body tag to call function everytime mouse is moved and check a bool var to see if div is visible and hense move it
however this means function call every time mouse moves
so am trying to impliment recursive check when div is visible
and switch it off when div is hidden
call to show hide div also sets bool "initialize" to true or false
function overlink()
{
if(initialize)
{
Moveit(userlay, Ey, Ex)
setInterval(overlink(), 3000000);
}
else
{
Moveit(userlay, 0, 0)
}
}
problem is i keep getting stack overflow.......that javascript has reached its max recursive level even when i set interval to long time.
am i doing something wrong here?
Galadriel
can someone give me some advice
the idea of the script is to create tool tips which while over the link or image will move with the mouse position
i know i can use body tag to call function everytime mouse is moved and check a bool var to see if div is visible and hense move it
however this means function call every time mouse moves

so am trying to impliment recursive check when div is visible
and switch it off when div is hidden
call to show hide div also sets bool "initialize" to true or false
function overlink()
{
if(initialize)
{
Moveit(userlay, Ey, Ex)
setInterval(overlink(), 3000000);
}
else
{
Moveit(userlay, 0, 0)
}
}
problem is i keep getting stack overflow.......that javascript has reached its max recursive level even when i set interval to long time.
am i doing something wrong here?
Galadriel
Comment