Template:Uppsala-SwedenTemplate

From 2011.igem.org

(Difference between revisions)
Line 243: Line 243:
<!-- START:DROP-DOWN MENU STYLE SHEET (Source: http://www.alistapart.com/articles/dropdowns/) -->
<!-- START:DROP-DOWN MENU STYLE SHEET (Source: http://www.alistapart.com/articles/dropdowns/) -->
-
`startList = function() {
 
-
if (document.all&&document.getElementById) {
 
-
navRoot = document.getElementById("nav");
 
-
for (i=0; i<navRoot.childNodes.length; i++) {
 
-
node = navRoot.childNodes[i];
 
-
if (node.nodeName=="LI") {
 
-
node.onmouseover=function() {
 
-
this.className+=" over";
 
-
  }
 
-
  node.onmouseout=function() {
 
-
  this.className=this.className.replace(" over", "");
 
-
  }
 
-
  }
 
-
  }
 
-
}
 
-
}
 
-
window.onload=startList;
 
ul {
ul {
Line 312: Line 295:
</style>
</style>
<![endif]-->
<![endif]-->
 +
 +
<script type="text/javascript"><!--//--><![CDATA[//><!--
 +
startList = function() {
 +
if (document.all&&document.getElementById) {
 +
navRoot = document.getElementById("nav");
 +
for (i=0; i<navRoot.childNodes.length; i++) {
 +
node = navRoot.childNodes[i];
 +
if (node.nodeName=="LI") {
 +
node.onmouseover=function() {
 +
this.className+=" over";
 +
}
 +
node.onmouseout=function() {
 +
this.className=this.className.replace(" over", "");
 +
}
 +
}
 +
}
 +
}
 +
}
 +
window.onload=startList;
 +
 +
//--><!]]></script>
</html>
</html>
<div class="container_16">
<div class="container_16">

Revision as of 16:19, 25 June 2011