Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
(Undo revision 38879 by Demonfool (Talk))
Line 297: Line 297:
</div>     
</div>     
     </div>
     </div>
-
<script type="text/javascript">
+
 
-
window.onload = function() {
+
-
      var lis = document.getElementsByTagName('li');
+
-
      for(i = 0; i < lis.length; i++) {
+
-
            var li = lis[i];
+
-
            if (li.id == 'mainTeam' || li.id == 'mainProjects' || li.id == 'mainParts' || li.id == 'mainNotebook' || li.id == 'mainCalender' || li.id == 'mainTeam' || li.id == 'mainSponsors') {
+
-
                  li.onmouseover = function() { this.getElementsByTagName('ul').item(0).style.display = 'block'; }
+
-
                  li.onmouseout = function() { this.getElementsByTagName('ul').item(0).style.display = 'none'; }
+
-
            }
+
-
      }
+
-
}
+
-
</script>
+
</body>
</body>

Revision as of 10:08, 1 August 2010