Team:Cornell/Templates/test

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<head>
<head>
 +
<!--  Rollover script from www.htmlforums.com user trouble706 -->
<!--  Rollover script from www.htmlforums.com user trouble706 -->
<script language="javascript">
<script language="javascript">
Line 6: Line 7:
/*** List your images here that will be on the page and then the mouse over images in the 2nd array ***/
/*** List your images here that will be on the page and then the mouse over images in the 2nd array ***/
-
upSources = new Array("https://static.igem.org/mediawiki/2011/c/cf/Cornell11_links_abstract.jpg", "https://static.igem.org/mediawiki/2011/3/33/Cornell11_links_project.jpg‎", "https://static.igem.org/mediawiki/2011/1/12/Cornell11_links_team.jpg‎", "https://static.igem.org/mediawiki/2011/6/68/Cornell11_links_multimedia.jpg");
+
upSources = new Array("https://static.igem.org/mediawiki/2011/c/cf/Cornell11_links_abstract.jpg", "https://static.igem.org/mediawiki/2011/3/33/Cornell11_links_project.jpg‎", "https://static.igem.org/mediawiki/2011/1/12/Cornell11_links_team.jpg", "https://static.igem.org/mediawiki/2011/6/68/Cornell11_links_multimedia.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");
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 34: Line 22:
document.getElementById('button' + But + ID).src = upSources[But-1];
document.getElementById('button' + But + ID).src = upSources[But-1];
}
}
-
 
-
 
-
//preload();
 
</script>
</script>
Line 91: Line 76:
<a href="https://2011.igem.org/Team:Cornell" onMouseOver="setOverImg('4','');" onMouseOut="setOutImg('4','');" target=""><img src="https://static.igem.org/mediawiki/2011/6/68/Cornell11_links_multimedia.jpg" border="0" id="button4" vspace="0" hspace="0"></a>
<a href="https://2011.igem.org/Team:Cornell" onMouseOver="setOverImg('4','');" onMouseOut="setOutImg('4','');" target=""><img src="https://static.igem.org/mediawiki/2011/6/68/Cornell11_links_multimedia.jpg" border="0" id="button4" vspace="0" hspace="0"></a>
-
</div>
 
</center>
</center>
 +
</div>
 +
</html>
</html>

Revision as of 18:54, 18 July 2011