any idea why my mouseout is not working?

Posted on 2011-02-18
Medium Priority
Last Modified: 2012-05-11

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?

Question by:JGoyer
LVL 40

Accepted Solution

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

            function() {
LVL 11

Expert Comment

by:Ovid Burke
ID: 34925379
jQuery.hover takes two handlers: for the mouseover state, and then the mouse out state.

	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


Author Closing Comment

ID: 34926317
That is perfect.  Thanks!

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
AngularJS web development a very simple procedure. So, to put it, in short, AngularJS’ stand out features are – Two-way data binding, MVC structure, directives, templates, dependency injections and testing.
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…

627 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