Edinburgh University
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) m |
Hristianita (Talk | contribs) m |
||
Line 19: | Line 19: | ||
ul.submenu { | ul.submenu { | ||
display:none; | display:none; | ||
+ | background-color: #0000ff; | ||
} | } | ||
Line 29: | Line 30: | ||
</style> | </style> | ||
+ | |||
+ | <script type="javascript> | ||
+ | function showSubmenu(item) { | ||
+ | var children = this.childNodes(); | ||
+ | for ( var i=0; i< children.length; i++) { | ||
+ | children[i].display = "block"; | ||
+ | |||
+ | } | ||
+ | } | ||
+ | </script> | ||
+ | |||
</head> | </head> | ||
</html> | </html> | ||
Line 34: | Line 46: | ||
<div class="menu" style="display: none;"> | <div class="menu" style="display: none;"> | ||
<ul> | <ul> | ||
- | <li class="menu_item"> [[Main Page|Menu test 1]] | + | <li class="menu_item" onmouseover="showSubmenu(this)"> [[Main Page|Menu test 1]] |
<ul class="submenu"> | <ul class="submenu"> | ||
<li class="menu_subitem"> Subitem 1 </li> | <li class="menu_subitem"> Subitem 1 </li> | ||
Line 40: | Line 52: | ||
</ul> | </ul> | ||
</li> | </li> | ||
- | <li class="menu_item"> [[Main Page|Menu test 2]] </li> | + | <li class="menu_item" onmouseover="showSubmenu(this)"> [[Main Page|Menu test 2]] </li> |
<ul class="submenu"> | <ul class="submenu"> | ||
<li class="menu_subitem"> Subitem </li> | <li class="menu_subitem"> Subitem </li> | ||
Line 61: | Line 73: | ||
!align="center"|[[Team:Edinburgh/Attributions|Attributions]] | !align="center"|[[Team:Edinburgh/Attributions|Attributions]] | ||
|} | |} | ||
- | |||
- | |||
Revision as of 16:13, 26 June 2013