Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

any idea why my mouseout is not working?

Posted on 2011-02-18
3
Medium Priority
?
380 Views
Last Modified: 2012-05-11
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!
0
Comment
Question by:JGoyer
3 Comments
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 34925299
add the following lines

$("a:has(img.productsImg)").mouseout(
            function() {
                $("#tooltip1").hide();
}
        );
0
 
LVL 11

Expert Comment

by:Ovid Burke
ID: 34925379
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

0
 
LVL 2

Author Closing Comment

by:JGoyer
ID: 34926317
That is perfect.  Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question