Dante85
Dante85

Reputation: 1

I'm trying to get a menu list with the effect fade to (jquery)

$(document).ready(function() {
$(".menu li a").hover(function() {
$(this).fadeTo("slow", 0.33);
});
});

I want to effect mouseover and mouseout but I can't do it :(

Upvotes: 0

Views: 49

Answers (2)

random_user_name
random_user_name

Reputation: 26170

$(document).ready(function() 
    $(".menu li a").hover(function() {
        $(this).fadeTo("slow", 0.33);
    }, function() {
        $(this).fadeIn("slow");
    });
});

Upvotes: 2

thecodeparadox
thecodeparadox

Reputation: 87073

$(document).ready(function() {
   $(".menu li a").hover(function() {

      // do something for mouseover

   }, function() {

     // do something for mouseout

   });
});

Upvotes: 1

Related Questions