Posted By

silentpro on 03/29/11


Tagged

javascript image textmate opacity jquery Switch change


Versions (?)

Change Image Opacity


 / Published in: Other
 

  1. jQuery(document).ready(function() {
  2. jQuery(".main-menu-image").delegate("img", "mouseover mouseout", function(e) {
  3. if (e.type == 'mouseover') {
  4. jQuery(".main-menu-image img").not(this).dequeue().animate({opacity: "0.3"}, 300);
  5. } else {
  6. jQuery(".main-menu-image img").not(this).dequeue().animate({opacity: "1"}, 300);
  7. }
  8. });
  9. });

Report this snippet  

You need to login to post a comment.