Template:Team:SCUT-China/mainpage

From 2014.igem.org

(Difference between revisions)
Line 15: Line 15:
border-bottom:4px solid red;
border-bottom:4px solid red;
}
}
-
#navslide
+
#navislide
{
{
background-color:transparent;
background-color:transparent;
Line 70: Line 70:
.logo{margin-left:4%;margin-top:20px;width:auto;height:100px;}
.logo{margin-left:4%;margin-top:20px;width:auto;height:100px;}
.bg{margin-left:25%;margin-top:100px;width:65%;height:auto;text-align:center;}
.bg{margin-left:25%;margin-top:100px;width:65%;height:auto;text-align:center;}
 +
</style>
 +
</head>
 +
<body>
 +
<div id="navi">
 +
<div id="navislide">
 +
<div class="navimenu_head">
 +
<p>NAVIHEAD_1</p>
 +
</div>
 +
<div class="navimenu_body">
 +
<p>NAVIBODY_1</p>
 +
<p>NAVIBODY_2</p>
 +
</div>
-
</style>
+
</div>
-
 
+
</div>
<script type="text/javascript">
<script type="text/javascript">
-
$(document).ready(function()
+
$(document).ready(function(){
-
{
+
$(".navimenu_head").mouseover(function(){
-
$(".navimenu_head").mouseover(function()
+
    $(this).next(".navimenu_body").slideDown("normal").siblings(".navimenu_body").slideUp("slow");
-
{
+
-
    $(this).next("div.navimenu_body").slideDown("normal").siblings("div.navimenu_body").slideUp("slow");
+
});
});
})
})
</script>
</script>
-
</head>
+
</body>
-
 
+
-
 
+
</html>
</html>

Revision as of 18:30, 17 October 2014