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();
 }
 );

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.