Template:Sifuentes05

From 2014.igem.org

(Difference between revisions)
Line 300: Line 300:
-
<!-- javascript for the featurebox -->
 
-
 
-
 
-
<!-- image size should be 145 x 145 px -->
 
-
<script type="text/javascript">
 
-
 
-
var arrayPosition = 0;
 
-
 
-
 
-
var imgFeatureBox= new Array();
 
-
imgFeatureBox[0] = "http://2014.igem.org/wiki/images/0/03/Featurebox_startateam.jpg";
 
-
imgFeatureBox[1] = "http://2014.igem.org/wiki/images/4/4c/Featureboxdemo.jpg";
 
-
 
-
var titleFeatureBox = new Array();
 
-
titleFeatureBox[0] = "Starting a Team";
 
-
titleFeatureBox[1] = "Registration";
 
-
 
-
var textFeatureBox = new Array();
 
-
textFeatureBox[0] = "All you need to know before starting your iGEM team";
 
-
textFeatureBox[1] = "Registration for iGEM 2015  will open soon ";
 
-
 
-
 
-
 
-
function changeTitle(n) {
 
-
document.getElementById("featureBoxTitle").innerHTML = titleFeatureBox[n];
 
-
}
 
-
 
-
function changeText(n) {
 
-
document.getElementById("featureText").innerHTML = textFeatureBox[n];
 
-
}
 
-
 
-
 
-
function changeImg(n) {
 
-
var imgobj = document.getElementById('imageNumber');
 
-
imgobj.src =imgFeatureBox[n];
 
-
}
 
-
 
-
function moveLeft() {
 
-
arrayPosition -= 1;
 
-
if (arrayPosition < 0)
 
-
arrayPosition = imgFeatureBox.length - 1;
 
-
 
-
changeImg(arrayPosition);
 
-
changeText(arrayPosition);
 
-
changeTitle(arrayPosition);
 
-
 
-
}
 
-
 
-
 
-
function moveRight() {
 
-
arrayPosition += 1;
 
-
if (arrayPosition >= imgFeatureBox.length)
 
-
arrayPosition = 0;
 
-
 
-
changeImg(arrayPosition);
 
-
changeText(arrayPosition);
 
-
changeTitle(arrayPosition);
 
-
 
-
}
 
-
 
-
</script>
 
-
 
-
<!-- end of javascript-->
 
<!-- jquery -->
<!-- jquery -->
Line 429: Line 366:
<div id="featureBoxLeft">  
<div id="featureBoxLeft">  
-
<img src="http://2014.igem.org/images/wiki.png">
+
<a href="http://2014.igem.org/Sifuentes_anita4"> <img src="http://2014.igem.org/wiki/images/2/2a/Featureboxdemo_logo.jpg"></a>
</div>
</div>

Revision as of 14:36, 15 January 2015