Template:Team:Washington/Templates/Top

From 2012.igem.org

(Difference between revisions)
Line 258: Line 258:
#igemuwmenu ul a {     
#igemuwmenu ul a {     
 +
padding: 10px;
 +
width: 130px;
 +
_height: 10px; /*IE6 only*/
 +
display: block;
 +
white-space: nowrap;
 +
float: none;
 +
text-transform: none;
 +
}
 +
     
 +
        #igemuwmenu ul a.selected {   
padding: 10px;
padding: 10px;
width: 130px;
width: 130px;
Line 578: Line 588:
// selection
// selection
-
var path = location.pathname;
+
$path = location.pathname;
-
  $("a[href='" + [ path ] + "']").parents("ul").parents("li").each(function() {
+
if (path);
-
      $(this).addClass("selected");
+
$("a[href=' + [ path ] + ']").addClass("selected");
-
  });
+
</script>
</script>

Revision as of 04:43, 29 September 2012