Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 52: Line 52:
   // setup hovering
   // setup hovering
 +
var pages = [ "home", "blog", "competition", "background", "project", "press", "education", "sponsors" ];
 +
for(var i=0; i<pages.length;i++) {
 +
      var page=pages[i];
   var btnCssClassSelected = "menu_button_" + page + "_sel";
   var btnCssClassSelected = "menu_button_" + page + "_sel";
   btn.hover(function() {
   btn.hover(function() {
Line 64: Line 67:
   if (page == activePage)
   if (page == activePage)
     btn.addClass("menu_button_"+activePage+"_sel");
     btn.addClass("menu_button_"+activePage+"_sel");
 +
}
});
});

Revision as of 13:57, 21 July 2010