Team:Heidelberg/Templates/Footer-Nav
From 2013.igem.org
(Difference between revisions)
m |
m |
||
(One intermediate revision not shown) | |||
Line 159: | Line 159: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
- | var items = $('.item'); | + | /*var items = $('.item'); |
for (var i = 0; i < items.length; ++i) { | for (var i = 0; i < items.length; ++i) { | ||
var dd = $(items[i]).find('ul'); | var dd = $(items[i]).find('ul'); | ||
Line 165: | Line 165: | ||
dd.css("left", ($(items[i]).innerWidth() - dd.outerWidth()) * 0.5); | dd.css("left", ($(items[i]).innerWidth() - dd.outerWidth()) * 0.5); | ||
} | } | ||
- | } | + | }*/ |
$('#nav > div').hover( | $('#nav > div').hover( | ||
function () { | function () { | ||
var $this = $(this); | var $this = $(this); | ||
+ | var offsetLeft = $this.data("offsetL") + "px"; | ||
$this.find('img.circle').stop().animate({ | $this.find('img.circle').stop().animate({ | ||
'width' :'320px', | 'width' :'320px', | ||
'height' :'320px', | 'height' :'320px', | ||
// 'top' :'0 px', | // 'top' :'0 px', | ||
- | 'left' : | + | 'left' :offsetLeft, |
'opacity' :'3.0', | 'opacity' :'3.0', | ||
},200,'easeOutBack',function(){ | },200,'easeOutBack',function(){ |
Latest revision as of 00:36, 29 October 2013