Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post

    How can i fix this Jquery bug.

    http://www.youtube.com/watch?v=XVaB2...ature=youtu.be

    This is my code.

    Code:
    $(document).ready(function (){
    	$(".ubox").mouseenter(function(){
    		  $(this).find(".priceubox").fadeIn();
    		}).mouseleave(function(){
    		  $(this).find(".priceubox").fadeOut();
    		});
    });

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    Like this:
    Code:
    $(document).ready(function (){
    	$(".ubox").mouseenter(function(){
    		  $(this).find(".priceubox").stop().fadeIn();
    		}).mouseleave(function(){
    		  $(this).find(".priceubox").stop().fadeOut();
    		});
    });

  • #3
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post
    Dude. With your code i've got the weirdest thing.
    http://www.codingforums.com/showthre...97#post1184697

    How can i fix this?

  • #4
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    Please show us your code. The "stop" cannot be the reason for four pictures instead of one

  • #5
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post
    See the code here -> http://sorlakertest.xpg.uol.com.br/.

  • #6
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post
    Resolved! I had to write .stop(true, true). Thanks guys!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •