I’m following a tutorial.
I’ve included the hover.js with the following code:
$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".imgopacity").css("opacity","0.5");
// ON MOUSE OVER
$(".imgopacity").hover(function () {
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
// ON MOUSE OUT
function () {
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "slow");
});
});