Template:Team:TU Munich/Menu

From 2011.igem.org

(Difference between revisions)
Line 63: Line 63:
<script>
<script>
$(document).ready(function(){
$(document).ready(function(){
 +
    $(function(){
 +
    var path = location.pathname.substring(1);
 +
    var last = path.split("/");
 +
    if ( last[1] ) {
 +
      $('#navtopics ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","#ea8828");
 +
    }
 +
    else {
 +
      $('#navtopics ul li a[href$="' + path + '"]').addClass("curlink").css("color","#ea8828");
 +
    }
 +
    });
 +
     $('#topics').mouseover(function() {
     $('#topics').mouseover(function() {
     $('#navtitle').stop().animate({height:'150px',top:'0px'},1000);
     $('#navtitle').stop().animate({height:'150px',top:'0px'},1000);

Revision as of 16:11, 4 July 2011