Team:Uppsala-Sweden/Preloader
From 2011.igem.org
<script type="text/javascript">
var myImages = new Array (src="", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
var myPreload = new Array ();
for (var i = 0; i < myImages.length; i++ ) {
myPreload[ i ]= new Image(); myPreload[ i ].src = myPics[ i ];
}
function mySwap(s) {
if ( s == 0 )document.images.ForsterImage.src = "";
if ( s == 1 )document.images.ForsterImage.src = "";
if ( s == 0 )document.images.LidawImage.src = ""; if ( s == 1 )document.images.LidawImage.src = "";
if ( s == 0 )document.images.EugeniaImage.src = "";
if ( s == 1 )document.images.EugeniaImage.src = "";
if ( s == 0 )document.images.DalmoImage.src = "";
if ( s == 1 )document.images.DalmoImage.src = "";
if ( s == 0 )document.images.LeiImage.src = "";
if ( s == 1 )document.images.LeiImage.src = "";
if ( s == 0 )document.images.Phaniimage.src = "";
if ( s == 1 )document.images.Phaniimage.src = "";
if ( s == 0 )document.images.AntonioImage.src = "";
if ( s == 1 )document.images.AntonioImage.src = "";
if ( s == 0 )document.images.SibelImage.src = "";
if ( s == 1 )document.images.SibelImage.src = "";
if ( s == 0 )document.images.JohannaImage.src = "";
if ( s == 1 )document.images.JohannaImage.src = "";
if ( s == 0 )document.images.MohamedImage.src = "";
if ( s == 1 )document.images.MohamedImage.src = "";
if ( s == 0 )document.images.ErikImage.src = "";
if ( s == 1 )document.images.ErikImage.src = "";
if ( s == 0 )document.images.LauraImage.src = "";
if ( s == 1 )document.images.LauraImage.src = "";
if ( s == 0 )document.images.HamidImage.src = "";
if ( s == 1 )document.images.HamidImage.src = "";
if ( s == 0 )document.images.KarlImage.src = "";
if ( s == 1 )document.images.KarlImage.src = "";
if ( s == 0 )document.images.PikkeiImage.src = "";
if ( s == 1 )document.images.PikkeiImage.src = "";
if ( s == 0 )document.images.ChernoImage.src = "";
if ( s == 1 )document.images.ChernoImage.src = "";
}
</script>