Template:Template ZJU-China 2010

From 2010.igem.org

(Difference between revisions)
(Undo revision 38879 by Demonfool (Talk))
Line 8: Line 8:
body {
body {
-
/*margin: 20px 0;*/
+
margin: 20px 0;
background: #FFFFFF;
background: #FFFFFF;
font: normal small Georgia, "Times New Roman", Times, serif;
font: normal small Georgia, "Times New Roman", Times, serif;
Line 68: Line 68:
.boxed .title {
.boxed .title {
-
/*padding: 5px 10px;*/
+
padding: 5px 10px;
background: url(https://static.igem.org/mediawiki/2010/e/e2/Img07.gif) repeat-x left bottom;
background: url(https://static.igem.org/mediawiki/2010/e/e2/Img07.gif) repeat-x left bottom;
-
/*font-size: 1em;*/
+
font-size: 1em;
}
}
-
.boxed .content {
+
.boxed .cont {
-
/*padding: 20px 20px 40px 20px;*/
+
padding: 20px 20px 40px 20px;
}
}
Line 80: Line 80:
.post {
.post {
-
/*padding: 10px;*/
+
padding: 10px;
}
}
Line 99: Line 99:
#logo {
#logo {
-
/*width: 969px;*/
+
width: 969px;
height: 210px;
height: 210px;
margin: 0 auto;
margin: 0 auto;
Line 130: Line 130:
/* Content */
/* Content */
-
#content {
+
#cont {
-
/*width: 969px;*/
+
width: 969px;
margin: 0 auto;
margin: 0 auto;
-
/*background: url(https://static.igem.org/mediawiki/2010/a/a0/Img03.png) repeat-y;*/
+
background: url(https://static.igem.org/mediawiki/2010/a/a0/Img03.png) repeat-y;
}
}
Line 139: Line 139:
clear: both;
clear: both;
height: 20px;
height: 20px;
-
/*background: url(https://static.igem.org/mediawiki/2010/5/51/Img06.png) no-repeat;*/
+
background: url(https://static.igem.org/mediawiki/2010/5/51/Img06.png) no-repeat;
}
}
Line 146: Line 146:
#main {
#main {
float: right;
float: right;
-
/*width: 738px;*/
+
width: 738px;
-
/*background: url(https://static.igem.org/mediawiki/2010/b/b0/Img05.gif) no-repeat right top;*/
+
background: url(https://static.igem.org/mediawiki/2010/b/b0/Img05.gif) no-repeat right top;
color: #FFA954;
color: #FFA954;
}
}
Line 170: Line 170:
float: left;
float: left;
width: 220px;
width: 220px;
-
/*background: url(https://static.igem.org/mediawiki/2010/a/a5/Img04.gif) no-repeat;*/
+
background: url(https://static.igem.org/mediawiki/2010/a/a5/Img04.gif) no-repeat;
color: #6BB3B3;
color: #6BB3B3;
}
}
Line 181: Line 181:
#menu {
#menu {
-
/*padding: 20px 0;*/
+
padding: 20px 0;
}
}
Line 255: Line 255:
<a href="http://www.zju.edu.cn/english/">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zhejiang University</a></h2>
<a href="http://www.zju.edu.cn/english/">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zhejiang University</a></h2>
</div>
</div>
-
<div id="content">
+
<div id="cont">
<div id="sidebar">
<div id="sidebar">
<div id="menu">
<div id="menu">
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