Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 50: Line 50:
return false;
return false;
});
});
 +
 +
  // setup hovering
 +
  var btnCssClassSelected = "menu_button_" + page + "_sel";
 +
  btn.hover(function() {
 +
    if (page != activePage)
 +
      btn.addClass(btnCssClassSelected);
 +
  }, function() {
 +
    if (page != activePage)
 +
      btn.removeClass(btnCssClassSelected);
 +
  });
 +
 +
  btn.addClass("button_pointer");
 +
  if (page == activePage)
 +
    btn.addClass("menu_button_"+activePage+"_sel");
 +
});
});

Revision as of 13:55, 21 July 2010