Partly completed mouseleave/mouseenter code.