Template:Team:Bonn:PageMenu

From 2013.igem.org

(Difference between revisions)
Line 4: Line 4:
<div class="menu">
<div class="menu">
<ul id="menu-top">
<ul id="menu-top">
-
   <li id="menu-home" class="menu-column">
+
   <li id="menu-home" class="menu-column" onmouseover="highlightOn(this.id)" onmouseout="highlightOff(this.id)">
       <span id="menu-home" class="menu-head"></html> [[Team:Bonn|Home]] <html></span>
       <span id="menu-home" class="menu-head"></html> [[Team:Bonn|Home]] <html></span>
   </li>
   </li>
-
   <li id="menu-team" class="menu-column">
+
   <li id="menu-team" class="menu-column" onmouseover="highlightOn(this.id)" onmouseout="highlightOff(this.id)">
     <span class="menu-head"></html> [[Team:Bonn/AboutUs|Team]] <html></span>
     <span class="menu-head"></html> [[Team:Bonn/AboutUs|Team]] <html></span>
     <ul class="menu-sub-ul" id="menu-sub-team">
     <ul class="menu-sub-ul" id="menu-sub-team">
Line 23: Line 23:
</ul>
</ul>
</div>
</div>
-
<script>
+
 
-
$(function() {
+
-
  $('#menu-team').hover( function()
+
-
    {
+
-
      $('.menu-column > ul').stop().slideUp();
+
-
      $('.menu-column > ul').slideDown("1000");
+
-
     
+
-
    });
+
-
  $('#menu-team').mouseleave(function()
+
-
    {
+
-
      $('.menu-column > ul').stop().slideDown();
+
-
      $('.menu-column > ul').slideUp("1000");
+
-
    });
+
-
});
+
-
</script>
+
</html>
</html>

Revision as of 18:03, 20 April 2013