Team:Fudan D

From 2012.igem.org

(Difference between revisions)
Line 4: Line 4:
/>
/>
-
   <script type="text/javascript"
+
    
-
 
+
-
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
+
-
 
+
-
"></script>
+
-
  <script type="text/javascript">
+
-
  $(document).ready(function(){
+
-
 
+
-
    $(function(){
+
-
    var path = location.pathname.substring(1);
+
-
    var last = path.split("/");
+
-
    if ( last[1] ) {
+
-
      $('#headover ul li a[href*="' + last[1] + '"]').addClass
+
-
 
+
-
("curlink").css("color","#01DF01");
+
-
    }
+
-
    else {
+
-
      $('#headover ul li a[href$="' + path + '"]').addClass
+
-
 
+
-
("curlink").css("color","#01DF01");
+
-
    }
+
-
    });
+
-
 
+
-
    $('#menuback').mouseover(function() {
+
-
    $('#headover').stop().animate({height:'150px',top:'0px'},1000);
+
-
    });
+
-
 
+
-
    $('#menu').mouseleave(function() {
+
-
    $('.listhead').not('.curlink').css("color","#000000");
+
-
    $('.listmain').not('.curlink').css("color","#dddddd");
+
-
    $('#headover ul').fadeOut(500);
+
-
    $('#headover').stop().animate
+
-
 
+
-
 
+
-
 
+
-
  });
+
-
  </script>
+
   <style type="text/css">
   <style type="text/css">

Revision as of 08:06, 22 July 2012