Team:Cornell/templates/tour
From 2012.igem.org
(Difference between revisions)
(Created page with "<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]>...") |
|||
(35 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"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<body> | <body> | ||
- | <div | + | <div class="tour" style="left:0"> |
- | + | <a id="prev"> Previous </a> | |
</div> | </div> | ||
- | <div | + | <div class="tour" style="right:0"> |
- | + | <a id="next"> Next </a> | |
</div> | </div> | ||
</body> | </body> | ||
+ | <script> | ||
+ | var links=new Array(); | ||
+ | links[0]="https://2012.igem.org/Team:Cornell/templates/tour"; | ||
+ | links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"; | ||
+ | links[2]="somelink"; | ||
+ | for(var i=0;i<links.length;i++) { | ||
+ | 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