Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 320: Line 320:
textFeatureBox[0] = "All you need to know before starting your iGEM team";
textFeatureBox[0] = "All you need to know before starting your iGEM team";
textFeatureBox[1] = "Registration for iGEM 2015  will open soon ";
textFeatureBox[1] = "Registration for iGEM 2015  will open soon ";
 +
 +
var linkFeatureBox = new Array();
 +
textFeatureBox[0] = "igem.org";
 +
textFeatureBox[1] = "2015.igem.org ";
Line 328: Line 332:
function changeText(n) {
function changeText(n) {
document.getElementById("featureText").innerHTML = textFeatureBox[n];
document.getElementById("featureText").innerHTML = textFeatureBox[n];
 +
}
 +
 +
function changeLink(n) {
 +
document.getElementById("featureLink").innerHTML = linkFeatureBox[n];
}
}
Line 343: Line 351:
changeText(arrayPosition);
changeText(arrayPosition);
changeTitle(arrayPosition);
changeTitle(arrayPosition);
 +
changeLink(arrayPosition);
}
}
Line 354: Line 363:
changeText(arrayPosition);
changeText(arrayPosition);
changeTitle(arrayPosition);
changeTitle(arrayPosition);
 +
changeLink(arrayPosition);
}
}
Line 432: Line 442:
<div id="featureBoxImage">  
<div id="featureBoxImage">  
-
<img src="https://static.igem.org/mediawiki/2014/0/03/Featurebox_startateam.jpg"  width="145" height="145" id="imageNumber">
+
<a href="igem.org" id="featureLink">
 +
<img src="https://static.igem.org/mediawiki/2014/0/03/Featurebox_startateam.jpg"  width="145" height="145" id="imageNumber">
 +
</a>
</div>
</div>

Revision as of 22:38, 14 January 2015