[thelist] JS mouseover problem

Bill Lovett bill at ilovett.com
Mon Nov 5 15:43:27 CST 2001

On Mon, Nov 05, 2001 at 11:22:41PM +0200, Lauri Vain wrote:

> Check out http://www.interest.ee/~vain/allin1/ for what I'm speaking about!
> Any ideas, how to stop the 'default' image from returning when the visitor goes
> from one link to another? The only think I've been able to think of, is a time
> delay of some sort but that's not a very elegant idea, now is it? How can I
> eliminate this problem?

As far as I know, the time delay idea is the only way to do what you
want to do the way things are set up right now. A mouseout event can't
tell what the user is going to do next, so there's no way to
distinguish between a mouseout that should restore the default image
and a mouseout that should keep the current image because a new one is
going to swap in. If it were possible to turn those links into images,
and put the images right on top of each other with no whitespace at
all, you'd still be in the same boat but the flicker wouldn't happen
because the onmouseout and onmouseover would fire without the delay
that you have now.

Keep after the time delay idea. 


More information about the thelist mailing list