Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
   _gaq.push(['_trackPageview']);
   _gaq.push(['_trackPageview']);
-
/*
 
-
  (function() {
 
-
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 
-
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
-
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
-
  })();
 
-
        $(function() {
 
-
 
-
var $menu = $('#ldd_menu');
 
-
 
-
 
-
$menu.children('li').slice(1,3).each(function(){
 
-
var $this = $(this);
 
-
var $span = $this.children('span');
 
-
$span.data('width',$span.width());
 
-
 
-
$this.bind('mouseenter',function(){
 
-
$menu.find('.ldd_submenu').stop(true,true).hide();
 
-
$span.stop().animate({'width':'540px'},300,function(){
 
-
$this.find('.ldd_submenu').slideDown(300);
 
-
});
 
-
}).bind('mouseleave',function(){
 
-
$this.find('.ldd_submenu').stop(true,true).hide();
 
-
$span.stop().animate({'width': '138px'},300);
 
-
});
 
-
});
 
-
            });
 
-
*/
 

Revision as of 09:25, 5 October 2014