Team:KAIST-Korea/Team/Photos/Test1
From 2011.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
NumberOfImages = 2; | NumberOfImages = 2; | ||
+ | ImagesLayers = new Array(NumberOfImages); | ||
+ | ImagesLayers[0] = "https://static.igem.org/mediawiki/igem.org/thumb/8/87/Desert.jpg/800px-Desert.jpg"; | ||
+ | ImagesLayers[1] = "https://static.igem.org/mediawiki/igem.org/thumb/a/a4/Hydrangeas.jpg/800px-Hydrangeas.jpg"; | ||
+ | |||
Images = new Array(NumberOfImages); | Images = new Array(NumberOfImages); | ||
- | Images[0] = | + | Images[0] = |
- | + | ||
- | + | ||
function ImageChange_Up(){ | function ImageChange_Up(){ | ||
- | + | ImagesLayers.push(ImagesLayers.shift()); | |
- | document.myImages1.src= | + | document.myImages1.src=ImagesLayers[0]; |
- | document.myImages2.src= | + | document.myImages2.src=ImagesLayers[1]; |
} | } | ||
function ImageChange_Down(){ | function ImageChange_Down(){ | ||
- | + | ImagesLayers.unshift(ImagesLayers.pop()); | |
- | document.myImages1.src= | + | document.myImages1.src=ImagesLayers[0]; |
- | document.myImages2.src= | + | document.myImages2.src=ImagesLayers[1]; |
} | } | ||
- | function ImageMag( | + | function ImageMag(){ |
- | + | Images = new Array(NumberOfImages); | |
- | + | Images[0] = ImagesLayers[0]; | |
- | + | Images[1] = ImagesLayers[1]; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</script> | </script> | ||
Revision as of 14:20, 14 July 2011