Team:Alberta/application.js
From 2011.igem.org
// 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') } );
});
if (document.images) { preload_image_object = new Image(); // set image url image_url = new Array(); image_url[0] = ""; image_url[1] = ""; image_url[2] = ""; image_url[3] = ""; image_url[4] = ""; image_url[5] = "";
var i = 0; for(i=0; i<=5; i++) preload_image_object.src = image_url[i]; }