Team:Heidelberg/Templates/Footer-Nav
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 8: | Line 8: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
+ | var items = $('.item'); | ||
+ | for (var i = 0; i < items.length; ++i) { | ||
+ | var dd = $(items[i]).find('ul'); | ||
+ | if (dd.length) { | ||
+ | dd.css("left", ($(items[i]).innerWidth() - dd.outerWidth()) * 0.5); | ||
+ | } | ||
+ | } | ||
$('#nav > div').hover( | $('#nav > div').hover( | ||
function () { | function () { |
Revision as of 01:48, 5 October 2013