Team:Cornell/templates/tour

From 2012.igem.org

(Difference between revisions)
Line 8: Line 8:
<body>
<body>
<div class="tour" style="left:0">  
<div class="tour" style="left:0">  
-
<a id="prev"> Previous </a>
+
<a id="prev" href=link()> Previous </a>
</div>
</div>
<div class="tour" style="right:0">  
<div class="tour" style="right:0">  
-
<a id="next"> Next </a>
+
<a id="next" href=link()> Next </a>
</div>
</div>
</body>
</body>
-
<script>
+
<script>
 +
function link(){
var 1="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"
var 1="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"
-
if(window.location.href.toString()=="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab") {
+
if(window.location.href.toString()=="https://2012.igem.org/Team:Cornell/templates/tour") {
-
document.getElementById("prev").href="https://2012.igem.org/Team:Cornell/Sandbox";
+
return https://2012.igem.org/Team:Cornell/Sandbox;
-
document.getElementById("next").href="https://2012.igem.org/Team:Cornell/Sandbox";
+
}
}
 +
}
</script>
</script>
</html>
</html>

Revision as of 18:12, 13 June 2013