Team:TU Delft/header2
From 2010.igem.org
(Difference between revisions)
Line 60: | Line 60: | ||
var btnCssClassSelected = "menu_button_" + page + "_sel"; | 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:51, 21 July 2010