Team:Alberta/application.js
From 2010.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
// show the drop down list on hover | // show the drop down list on hover | ||
$('li.headlink').hover( | $('li.headlink').hover( | ||
- | function() { $('ul', this).show(); }, | + | /*function() { $('ul', this).show(); }, |
- | + | function() { $('ul', this).hide(); }*/ | |
- | function() { $('ul', this).css('display', ' | + | function() { $('ul', this).css('display', 'table') }, |
+ | function() { $('ul', this).css('display', 'none') } | ||
); | ); | ||
Revision as of 23:47, 26 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).show(); }, function() { $('ul', this).hide(); }*/ function() { $('ul', this).css('display', 'table') }, function() { $('ul', this).css('display', 'none') } );
$('.achieve-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Achievements"; });
$('.software-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Software"; });
$('.kit-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/Kit"; });
$('.biobytes-link').click(function(){ document.location="https://2010.igem.org/Team:Alberta/biobyte2"; });
$('.genomikon-link').click(function(){ document.location="http://www.genomikon.ca"; });
});