I have a hover state that I want to use, but only if the opacity is not .65, this is what I have but it's not quite working, not sure exactly how to change it. Thanks in advance for any help.
$('.info_btn').hover(
var jthis = this;
if($('.info_btn').css('opacity') == 0.65) { }
else {
function() {
$(jthis).css({
"opacity": "0.7",
"-moz-opacity": "0.7",
"filter": "alpha(opacity = 70)"
});
}, function() {
$(jthis).css({
"opacity": "0.2",
"-moz-opacity": "0.2",
"filter": "alpha(opacity = 20)"
});
}
}
);
jQuery hoverexpects 1 or 2 functions as arguments.