$('.navbarItem').hover(
function () {
// Mouse over, first hide any gradients that have not been hidden.
$('.navbarItem').children(".gradient").hide();
// Turn on the gradient for this item.
$(this).gradient({ from: 'dddddd', to: 'aaaaaa' });
},
function () {
// Mouse out (this doesn't always get called), hide the gradient.
$('.navbarItem').children(".gradient").hide();
}
);
Re: How do you clear a gradient?
This seems to do it:
$('.navbarItem').hover(
function () {
// Mouse over, first hide any gradients that have not been hidden.
$('.navbarItem').children(".gradient").hide();
// Turn on the gradient for this item.
$(this).gradient({ from: 'dddddd', to: 'aaaaaa' });
},
function () {
// Mouse out (this doesn't always get called), hide the gradient.
$('.navbarItem').children(".gradient").hide();
}
);