Team:Heidelberg/Templates/Footer-Start
From 2013.igem.org
(Difference between revisions)
m |
Nils.kurzawa (Talk | contribs) m |
||
Line 6: | Line 6: | ||
<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); | ||
+ | } | ||
+ | } | ||
+ | $(function() { | ||
+ | |||
$('#nav > div').hover( | $('#nav > div').hover( | ||
function () { | function () { |
Revision as of 17:26, 20 October 2013