Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 8: Line 8:
           { $('#access ul li a').removeClass("current_page_item");  
           { $('#access ul li a').removeClass("current_page_item");  
             $('#access strong').parents("li.page_item").find("a:not(ul ul a)").addClass("current_page_item");
             $('#access strong').parents("li.page_item").find("a:not(ul ul a)").addClass("current_page_item");
-
               if($('.current_page_item').length>0) alert("submenu");
+
               if($('.current_page_item').length>0||$('#access strong').lenght>1) alert("submenu");
           }
           }
         /*$(location).attr('href');
         /*$(location).attr('href');

Revision as of 08:29, 26 August 2011