Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
Line 167: Line 167:
/* Content > Sidebar */
/* Content > Sidebar */
-
#sidebar {
+
#side {
float: left;
float: left;
width: 220px;
width: 220px;
Line 174: Line 174:
}
}
-
#sidebar a {
+
#side a {
color: #319595;
color: #319595;
}
}
Line 256: Line 256:
</div>
</div>
<div id="cont">
<div id="cont">
-
<div id="sidebar">
+
<div id="side">
<div id="menu">
<div id="menu">
<ul>
<ul>
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:11, 1 August 2010