Team:Heidelberg/Templates/Footer-Nav
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 7: | Line 7: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $('#nav > div').hover( | |
- | + | ||
function () { | function () { | ||
var $this = $(this); | var $this = $(this); | ||
Line 14: | Line 13: | ||
'width' :'250px', | 'width' :'250px', | ||
'height' :'250px', | 'height' :'250px', | ||
- | + | // 'top' :'0 px', | |
- | + | 'left' :'-99px', | |
'opacity' :'3.0', | 'opacity' :'3.0', | ||
},200,'easeOutBack',function(){ | },200,'easeOutBack',function(){ | ||
- | $(this).parent().find('ul').fadeIn(100); | + | $(this).parent().parent().find('ul').fadeIn(100); |
- | } | + | }).css('z-index', '1'); |
- | + | //$this.find('a:first,h2,ul').addClass('active'); | |
- | $this.find('a:first,h2,ul').addClass('active'); | + | |
}, | }, | ||
function () { | function () { | ||
Line 29: | Line 27: | ||
'width' :'52px', | 'width' :'52px', | ||
'height' :'52px', | 'height' :'52px', | ||
- | + | // 'top' :'0px', | |
- | + | 'left' :'0px', | |
'opacity' :'0', | 'opacity' :'0', | ||
},1000,'easeOutBack'); | },1000,'easeOutBack'); | ||
- | $this.find('a:first,h2,ul').removeClass('active'); | + | //$this.find('a:first,h2,ul').removeClass('active'); |
} | } | ||
); | ); |
Revision as of 01:36, 5 October 2013