Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 57: Line 57:
   // setup hovering
   // setup hovering
 +
$(".menu_button", elem).each(function(){
 +
 +
  var btnCssClassSelected = "menu_button_" + page + "_sel";
 +
  $(this).hover(function() {
 +
    if (page != activePage)
 +
      $(this).addClass(btnCssClassSelected);
 +
  }, function() {
 +
    if (page != activePage)
 +
      $(this).removeClass(btnCssClassSelected);
 +
  });
 +
 +
  $(this).addClass("button_pointer");
 +
  if (page == activePage)
 +
    $(this).addClass("menu_button_"+activePage+"_sel");
 +
}
});
});

Revision as of 14:48, 21 July 2010