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 | + | if (document.images) { |
- | + | if (preloadFlag == true) { | |
- | + | var img; | |
- | + | for (var i=0; i<changeImages.arguments.length; i+=2) { | |
- | + | img = null; | |
- | + | if (document.layers) { | |
- | + | img = findElement(changeImages.arguments[i],0); | |
- | + | } | |
- | + | else { | |
- | + | img = document.images[changeImages.arguments[i]]; | |
- | + | } | |
- | + | if (img) { | |
- | + | img.src = changeImages.arguments[i+1]; | |
- | + | } | |
+ | } | ||
+ | } | ||
} | } | ||
} | } | ||
+ | |||
var preloadFlag = false; | var preloadFlag = false; |
Latest revision as of 10:11, 15 July 2008