Template:Freiburg2013 Template

From 2013.igem.org

(Difference between revisions)
m
m
Line 197: Line 197:
    
    
</style>
</style>
-
 
+
<script>
 +
sfHover = function()
 +
{
 +
  var sfEls = document.getElementById("navbar").getElementsByTagName("a");
 +
  for (var i=0; i<sfEls.length; i++)
 +
      {
 +
          sfEls[i].onmouseover=function()
 +
          {
 +
              this.className+=" hover";
 +
          }
 +
          sfEls[i].onmouseout=function()
 +
          {
 +
              this.className=this.className.replace(new RegExp(" hover\\b"), "");
 +
          }
 +
      }
 +
}
 +
if (window.attachEvent) window.attachEvent("onload", sfHover);
 +
</script>

Revision as of 22:08, 25 June 2013