Template:Team:ESBS-Strasbourg/Templates/Navigation

From 2008.igem.org

(Difference between revisions)
(New page: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- ImageReady Preload Script --> <script type="text/javascript"> <!-- userAgent = window.navigator...)
 
Line 30: Line 30:
function changeImages() {
function changeImages() {
-
if (document.images && (preloadFlag == true)) {
+
if (document.images) {
-
var img;
+
    if (preloadFlag == true) {
-
for (var i=0; i<changeImages.arguments.length; i+=2) {
+
    var img;
-
img = null;
+
    for (var i=0; i<changeImages.arguments.length; i+=2) {
-
if (document.layers) {
+
    img = null;
-
img = findElement(changeImages.arguments[i],0);
+
    if (document.layers) {
-
}
+
    img = findElement(changeImages.arguments[i],0);
-
else {
+
    }
-
img = document.images[changeImages.arguments[i]];
+
    else {
-
}
+
    img = document.images[changeImages.arguments[i]];
-
if (img) {
+
    }
-
img.src = changeImages.arguments[i+1];
+
    if (img) {
-
}
+
    img.src = changeImages.arguments[i+1];
-
}
+
    }
 +
    }
 +
    }
}
}
}
}
 +
var preloadFlag = false;
var preloadFlag = false;

Latest revision as of 10:11, 15 July 2008

Home Team Project Links Notebook