Team:Cornell/Templates/test
From 2011.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
overSources = new Array("https://static.igem.org/mediawiki/2011/d/df/Cornell11_links_abstractglow.jpg", "https://static.igem.org/mediawiki/2011/b/bc/Cornell11_links_projectglow.jpg", "https://static.igem.org/mediawiki/2011/7/7b/Cornell11_links_teamglow.jpg", "https://static.igem.org/mediawiki/2011/f/f4/Cornell11_links_multimediaglow.jpg"); | overSources = new Array("https://static.igem.org/mediawiki/2011/d/df/Cornell11_links_abstractglow.jpg", "https://static.igem.org/mediawiki/2011/b/bc/Cornell11_links_projectglow.jpg", "https://static.igem.org/mediawiki/2011/7/7b/Cornell11_links_teamglow.jpg", "https://static.igem.org/mediawiki/2011/f/f4/Cornell11_links_multimediaglow.jpg"); | ||
+ | |||
+ | //*** DO NOT CHANGE ANYTHING BELOW THIS LINE ***// | ||
+ | totalButtons = upSources.length; | ||
//*** MAIN IMAGES FUNCTIONS ***// | //*** MAIN IMAGES FUNCTIONS ***// | ||
+ | // PRELOAD MAIN MENU BUTTON IMAGES | ||
+ | function preload() { | ||
+ | for ( x=0; x<totalButtons; x++ ) { | ||
+ | buttonUp = new Image(); | ||
+ | buttonUp.src = buttonFolder + upSources[x]; | ||
+ | buttonOver = new Image(); | ||
+ | buttonOver.src = buttonFolder + overSources[x]; | ||
+ | } | ||
+ | } | ||
// SET MOUSEOVER IMAGE | // SET MOUSEOVER IMAGE | ||
Line 24: | Line 36: | ||
} | } | ||
+ | |||
+ | //preload(); | ||
</script> | </script> | ||
Revision as of 21:59, 15 July 2011