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 25: Line 25:
<script>
<script>
-
$(function() {
 
-
  $('#menu-top').hover( function()
 
-
    {
 
-
      $('.menu-column > ul').stop().slideUp();
 
-
      $('.menu-column > ul').slideDown("1000");
 
-
     
 
-
    });
 
-
  $('#menu-top').mouseleave(function()
 
-
    {
 
-
      $('.menu-column > ul').stop().slideDown();
 
-
      $('.menu-column > ul').slideUp("1000");
 
-
    });
 
-
});
 
</script>
</script>
</html>
</html>

Revision as of 17:49, 20 April 2013