Team:Heidelberg LSL/Online store
From 2012hs.igem.org
(Difference between revisions)
Line 21: | Line 21: | ||
z-index:3; | z-index:3; | ||
} | } | ||
+ | |||
+ | |||
#a4 { position:absolute; top:285px; left:75px; z-index:1; background-color:transparent; } | #a4 { position:absolute; top:285px; left:75px; z-index:1; background-color:transparent; } | ||
#a5 { position:absolute; top:280px; right:370px; | #a5 { position:absolute; top:280px; right:370px; | ||
z-index:2; background-color:transparent; } | z-index:2; background-color:transparent; } | ||
+ | var Sundraarray = new Array(); | ||
+ | |||
+ | for (var i = 0; i <= 2; i++) { | ||
+ | Sundraarray[i] = new Image(); | ||
+ | } | ||
+ | |||
+ | Sundraarray[1].src="https://static.igem.org/mediawiki/2012hs/3/31/Sundra_button1.png"; | ||
+ | Sundraarray[2].src="https://static.igem.org/mediawiki/2012hs/1/10/Sundra_button2.png"; | ||
+ | |||
+ | |||
+ | function swap(num,effect) { | ||
+ | |||
+ | switch (num) { | ||
+ | case 1: document.getElementById("pic"+num).src =modelarray[effect].src; | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | function mouseOver(num) { | ||
+ | swap(num,2); | ||
+ | } | ||
+ | function mouseOut(num) | ||
+ | { | ||
+ | swap(num,1); | ||
+ | } | ||
</style> | </style> | ||
Line 43: | Line 71: | ||
<div id="a4"> | <div id="a4"> | ||
- | <a href="http://2012HS.igem.org/Team:Heidelberg_LSL/Sundro_col"> | + | <a href="http://2012HS.igem.org/Team:Heidelberg_LSL/Sundro_col" > |
- | <img src="https://static.igem.org/mediawiki/2012hs/8/81/Sundro_button1.png" width="160"/> | + | <img id="pic1" src="https://static.igem.org/mediawiki/2012hs/8/81/Sundro_button1.png" width="160"/> |
</a> | </a> | ||
</div> | </div> | ||
<div id="a5"> | <div id="a5"> | ||
- | <a href="http://2012HS.igem.org/Team:Heidelberg_LSL/Sundra_col"> | + | <a href="http://2012HS.igem.org/Team:Heidelberg_LSL/Sundra_col" onMouseOver="mouseOver(2)" onMouseOut="mouseOut(2)"> |
- | <img src="https://static.igem.org/mediawiki/2012hs/3/31/Sundra_button1.png" width="160"/> | + | <img id="pic2" src="https://static.igem.org/mediawiki/2012hs/3/31/Sundra_button1.png" width="160"/> |
</a> | </a> | ||
</div> | </div> |
Revision as of 18:34, 7 June 2012