Team:Cornell/templates/tour

From 2012.igem.org

(Difference between revisions)
 
(30 intermediate revisions not shown)
Line 3: Line 3:
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
-
<!--[if gt IE 8]><!-->
+
<!--[if gt IE 8]><!-->{{:Team:Cornell/templates/header}}
 +
Tour 1
 +
<!-- MOVED FUNCTIONALITY TO HEADER
<html class="no-js" lang="en">
<html class="no-js" lang="en">
-
<!--<![endif]-->
 
<body>
<body>
<div class="tour" style="left:0">  
<div class="tour" style="left:0">  
Line 14: Line 15:
</div>
</div>
</body>
</body>
-
<script>
+
<script>
-
var 1="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"
+
var links=new Array();
-
if(window.location.href.toString()==1) {
+
links[0]="https://2012.igem.org/Team:Cornell/templates/tour";
-
document.getElementById("prev").href="https://2012.igem.org/Team:Cornell";
+
links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab";
-
document.getElementById("next").href="https://2012.igem.org/Team:Cornell";
+
links[2]="somelink";
-
}
+
for(var i=0;i<links.length;i++) {
-
</script>
+
if(window.location.href.toString()==links[i]) {
 +
if(i==0) {
 +
document.getElementById("prev").style.display="none";
 +
document.getElementById("next").href=links[i+1];
 +
 
 +
}
 +
else if(i==links.length-1) {
 +
document.getElementById("prev").href=links[i-1];
 +
document.getElementById("next").style.display="none";
 +
}
 +
else {
 +
document.getElementById("prev").href=links[i-1];
 +
document.getElementById("next").href=links[i+1];
 +
}
 +
}
 +
}
 +
</script>  
</html>
</html>
 +
-->

Latest revision as of 02:27, 20 June 2013


Tour 1