Solved

any idea why my mouseout is not working?

Posted on 2011-02-18
3
356 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:
gurvinder372 earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now