Team:TU Delft/header2
From 2010.igem.org
(Difference between revisions)
Line 57: | Line 57: | ||
// setup hovering | // setup hovering | ||
- | $(".menu_button" | + | $(".menu_button").each(function(){ |
var btnCssClassSelected = "menu_button_" + page + "_sel"; | var btnCssClassSelected = "menu_button_" + page + "_sel"; | ||
- | + | this.hover(function() { | |
if (page != activePage) | if (page != activePage) | ||
- | + | this.addClass(btnCssClassSelected); | |
}, function() { | }, function() { | ||
if (page != activePage) | if (page != activePage) | ||
- | + | this.removeClass(btnCssClassSelected); | |
}); | }); | ||
- | + | this.addClass("button_pointer"); | |
if (page == activePage) | if (page == activePage) | ||
- | + | this.addClass("menu_button_"+activePage+"_sel"); | |
} | } | ||
Revision as of 14:49, 21 July 2010