Team:TU Delft/header2

From 2010.igem.org

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

Revision as of 14:49, 21 July 2010