Link to home
Start Free TrialLog in
Avatar of JGoyer
JGoyerFlag for United States of America

asked on

any idea why my mouseout is not working?

http://www.picnictime.com/productsTest.php?pid=9191&cid=52&page=1

On this page I have a function that is supposed to generate a jquery hover popup (the thumbnails under the Enlarge Image link).  I also have an onmouseout function that does not appear to be working.  Does anyone have any idea why?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
jQuery.hover takes two handlers: for the mouseover state, and then the mouse out state.

$("a:has(img.productsImg)").hover(
	function() {
		var largePath = $(this).attr("title");
		var offset = $("#hoverImgs").offset();
		
		$("#photo_large").attr({ src: largePath });
		$("#tooltip1").css("top", offset.top).css("left", offset.left).css("display", "block");
		$("#tooltip1").animate({ opacity: 1.0 }, 300);
	},
	function() {
		$("#tooltip1").animate({ opacity: 0.0 }, 300);
		$("#tooltip1").css("display", "none");
	}
);

Open in new window

Avatar of JGoyer

ASKER

That is perfect.  Thanks!