Team:TU Delft/header2

From 2010.igem.org

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

Revision as of 14:55, 21 July 2010