Template:Team:TU-Munich/TUM13 Script

From 2013.igem.org

(Difference between revisions)
Line 4: Line 4:
$(document).ready(function(){
$(document).ready(function(){
 +
// put the footer in the right place
// put the footer in the right place
$("#footer-box").prepend($("#social-footer"));
$("#footer-box").prepend($("#social-footer"));
 +
 +
 +
// implement image preloading
 +
 +
var images = new Array()
 +
 +
function preload() {
 +
    for (i = 0; i < preload.arguments.length; i++) {
 +
        images[i] = new Image()
 +
        images[i].src = preload.arguments[i]
 +
    }
 +
}
 +
 +
 +
// preload menu backgrounds
 +
 +
preload( "https://static.igem.org/mediawiki/2013/9/95/TUM13_menu-highlight.png",
 +
        "https://static.igem.org/mediawiki/2013/4/4e/TUM13_submenu-bg.png",
 +
        "https://static.igem.org/mediawiki/2013/d/db/TUM13_submenu-highlight.png" );
 +
// Animate the submenus
// Animate the submenus

Revision as of 09:25, 29 August 2013