Team:Alberta/application.js

From 2010.igem.org

(Difference between revisions)
Line 3: Line 3:
$(document).ready(function(){
$(document).ready(function(){
   // show the drop down list on hover
   // show the drop down list on hover
-
   $('li.headlink ul').hover(
+
   $('li.headlink').hover(
-
     function() { $(this).slideDown(); },
+
     function() { $('ul', this).css('display', 'block'); },
-
     function() { $(this).slideUp(); }
+
     function() { $('ul', this).css('display', 'none'); }
   );
   );
});
});

Revision as of 06:39, 22 October 2010

// This file for javascript that we want to include on all pages

$(document).ready(function(){

 // show the drop down list on hover
 $('li.headlink').hover(
   function() { $('ul', this).css('display', 'block'); },
   function() { $('ul', this).css('display', 'none'); }
 );

});