Template:Sifuentes04
From 2014.igem.org
(Difference between revisions)
Line 85: | Line 85: | ||
border: 1px solid #cccccc; | border: 1px solid #cccccc; | ||
border-radius: 5px; | border-radius: 5px; | ||
- | |||
} | } | ||
Line 304: | Line 303: | ||
textFeatureBox[1] = "text 02"; | textFeatureBox[1] = "text 02"; | ||
textFeatureBox[2] = "text 03"; | textFeatureBox[2] = "text 03"; | ||
+ | |||
+ | var titleFeatureBox = new Array(); | ||
+ | titleFeatureBox[0] = "Title 01"; | ||
+ | titleFeatureBox[1] = "Title 02"; | ||
+ | titleFeatureBox[2] = "Title 03"; | ||
+ | |||
+ | |||
+ | function changeTitle(n) { | ||
+ | var imgTitle = titleFeatureBox[n]; | ||
+ | document.getElementById("featureBoxTitle").innerHTML = imgTitle; | ||
+ | } | ||
function changeText(n) { | function changeText(n) { | ||
Line 309: | Line 319: | ||
document.getElementById("featureText").innerHTML = imgtext; | document.getElementById("featureText").innerHTML = imgtext; | ||
} | } | ||
- | |||
function changeImg(n) { | function changeImg(n) { | ||
Line 322: | Line 331: | ||
changeImg(galimgn); | changeImg(galimgn); | ||
changeText(galimgn); | changeText(galimgn); | ||
+ | changeTitle(galimgn); | ||
} | } | ||
Line 332: | Line 342: | ||
changeImg(galimgn); | changeImg(galimgn); | ||
changeText(galimgn); | changeText(galimgn); | ||
+ | changeTitle(galimgn); | ||
} | } | ||
Revision as of 16:18, 13 January 2015