Team:OUC-China/Team
From 2014.igem.org
(Difference between revisions)
(Prototype team page) |
|||
Line 1: | Line 1: | ||
{{CSS/Main}} | {{CSS/Main}} | ||
- | |||
- | |||
<html> | <html> | ||
+ | <script src="https://2014.igem.org/Team:OUC-China/js/jquery.js?action=raw&ctype=text/javascript"></script> | ||
+ | <style> | ||
+ | @charset "utf-8"; | ||
+ | /* CSS Document */ | ||
+ | body, div, p, ul, li, h1, h2, h3, h4, h5, h6 { | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | font-family: "微软雅黑"; | ||
+ | } | ||
+ | body{ | ||
+ | min-width:1350px; | ||
+ | } | ||
+ | ul, ol { | ||
+ | list-style: none; | ||
+ | } | ||
+ | img { | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | } | ||
+ | a { | ||
+ | color: inherit; | ||
+ | text-decoration: none; | ||
+ | } | ||
- | + | .header { | |
- | + | height: 240px; | |
- | + | width: 100%; | |
- | + | background: rgb(210,233,253); | |
- | + | position: relative; | |
- | + | } | |
- | + | .header .igemLogo { | |
- | + | top: 27px; | |
- | + | left: 66px; | |
- | + | transition: 0.3s; | |
- | + | -moz-transition: 0.3s; | |
- | + | -o-transition: 0.3s; | |
- | + | -webkit-transition: 0.3s; | |
- | + | } | |
- | + | .header .igemLogo:hover { | |
- | + | transform: rotate(360deg); | |
- | + | -moz-transform: rotate(360deg); | |
- | + | -ms-transform: rotate(360deg); | |
- | + | -o-transform: rotate(360deg); | |
- | + | -webkit-transform: rotate(360deg); | |
- | + | } | |
- | + | .header .waveUp { | |
- | + | position: absolute; | |
- | + | bottom: 0px; | |
- | + | width: 100%; | |
- | + | height: 110px; | |
- | + | background: url(https://static.igem.org/mediawiki/2014/f/f0/WaveUp.png) repeat-x; | |
- | + | } | |
- | + | .header .waveDown { | |
- | + | position: absolute; | |
- | + | bottom: 0px; | |
- | + | width: 100%; | |
- | + | height: 70px; | |
- | + | background: url(https://static.igem.org/mediawiki/2014/d/d0/WaveDown2.png) repeat-x; | |
- | + | z-index: 1; | |
- | + | } | |
- | + | .header .objLeft { | |
- | + | left: 211px; | |
- | + | top: 26px; | |
- | + | z-index: 0; | |
- | + | } | |
- | + | .header .objRight { | |
- | + | right: 230px; | |
- | + | top: 28px; | |
- | + | transition: 0.5s; | |
- | + | -webkit-transition: 0.5s; | |
- | + | z-index: 0; | |
- | + | } | |
- | + | .header .objRight:hover { | |
- | + | margin-top: 10px; | |
- | + | } | |
- | + | .header .nav { | |
- | + | top: 200px; | |
- | + | z-index: 2; | |
- | + | } | |
- | + | .header .nav ul{ width:800px; margin:auto;} | |
- | + | .main { | |
- | + | width: 100%; | |
- | + | background-image: url(https://static.igem.org/mediawiki/2014/1/19/OUC-China_Content_Background.png); | |
- | + | background-color: rgb(96,159,210); | |
- | + | position:relative; | |
- | + | } | |
- | + | .main .mainBox { | |
- | + | width: 800px; | |
- | + | height: 1000px; | |
- | + | background: rgb(114,187,227); | |
- | + | margin: 0 auto; | |
- | + | } | |
- | + | .main .menu{ | |
- | + | position: absolute; | |
- | + | top: 0px; | |
- | + | } | |
- | + | .main dt,.main dd{ | |
- | + | border:1px dashed #000; | |
- | + | color:#006CD9; | |
- | < | + | background:#FAFAFA; |
- | + | height:30px; | |
- | + | line-height:30px; | |
- | + | text-align:center; | |
- | < | + | } |
- | + | .footer { | |
- | + | width: 100%; | |
- | + | height: 100px; | |
- | < | + | background: rgb(39,119,183); |
- | + | } | |
- | < | + | .footer #top { |
- | + | height: 150px; | |
- | + | position: fixed; | |
- | + | bottom: 30px; | |
- | + | right: 30px; | |
- | + | z-index: 1000; | |
- | + | transition: 0.5s; | |
- | + | } | |
- | < | + | .footer #top:hover { |
- | + | transform: rotate(180deg); | |
- | + | -moz-transform: rotate(180deg); | |
- | + | -ms-transform: rotate(180deg); | |
- | + | -o-transform: rotate(180deg); | |
- | + | -webkit-transform: rotate(180deg); | |
- | + | } | |
- | + | @charset "utf-8"; | |
- | + | /* CSS Document */ | |
- | + | .nav { | |
- | + | position:relative; | |
- | + | } | |
- | + | .nav li { | |
- | + | padding: 0 8px; | |
- | + | float: left; | |
- | + | position: relative; | |
- | + | min-width: 80px; | |
- | + | height: 40px; | |
- | + | color: rgb(60,60,60); | |
- | + | font-size: 24px; | |
- | + | line-height: 40px; | |
- | + | text-align: center; | |
- | + | transition: 0.3s; | |
- | + | -moz-transition: 0.3s; | |
- | + | -o-transition: 0.3s; | |
- | + | -webkit-transition: 0.3s; | |
- | + | } | |
- | + | .nav li:hover { | |
- | + | background: rgb(146,205,253); | |
- | < | + | color: #fff; |
- | + | } | |
- | < | + | .nav .pMenu ul { |
- | + | display: none; | |
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 0px; | ||
+ | overflow: hidden; | ||
+ | border-bottom-left-radius: 6px; | ||
+ | border-bottom-right-radius: 6px; | ||
+ | } | ||
+ | .nav .pMenu ul li { | ||
+ | min-width: 220px; | ||
+ | background: rgb(146,205,253); | ||
+ | color: #fff; | ||
+ | transition: 0.4s; | ||
+ | -moz-transition: 0.4s; | ||
+ | -o-transition: 0.4s; | ||
+ | -webkit-transition: 0.4s; | ||
+ | } | ||
+ | .nav .pMenu ul li:hover { | ||
+ | background: rgb(98,175,243); | ||
+ | } | ||
+ | #stt{ width:230px; font-size:12px;} | ||
+ | dl{ line-height:25px;border-bottom:#999 1px dashed;} | ||
+ | </style> | ||
+ | <script> | ||
+ | if ($('.firstHeading')) $('.firstHeading').remove(); | ||
+ | $('#top-section').css({ 'position': 'relative' }); | ||
+ | </script> | ||
+ | <div class = "header"> <img class = "igemLogo" src="https://static.igem.org/mediawiki/2014/c/c6/OUC-China_Content_IGEM.png"> | ||
+ | <div class = "waveUp"></div> | ||
+ | <div class = "waveDown"></div> | ||
+ | <div style="margin:auto; width:500px;"><img src="https://static.igem.org/mediawiki/2014/a/a1/OUC_China_Content_Title.png" ></div> <img id = "objLeft" class = "objLeft" src="https://static.igem.org/mediawiki/2014/4/41/OUC-China_Index_Plasmid1.png"><img class = "objRight" src="https://static.igem.org/mediawiki/2014/e/e6/OUC-China_Index_Plasmid2.png"> | ||
+ | <div class = "nav"> | ||
+ | <ul> | ||
- | </ | + | <li>HOME</li> |
+ | <li class = "pMenu">TEAM | ||
+ | <ul> | ||
+ | <li><a href="#">team members</a></li> | ||
+ | <li><a href="#">instructor</a></li> | ||
+ | <li><a href="#">Acknowledgement</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li>PROJECT</li> | ||
+ | <li>JUDING</li> | ||
+ | <li>SAFETY</li> | ||
+ | <li>NOTEBOOK</li> | ||
+ | </ul> | ||
+ | <script> | ||
+ | var originalLeft = $("#objLeft").offset().left; | ||
+ | $("#objLeft").hover(function(){ | ||
+ | if($("#objLeft").offset().left == originalLeft) $(this).animate({marginTop:'10px'}); | ||
+ | },function(){ | ||
+ | $(this).animate({marginTop:'0px'}); | ||
+ | }); | ||
+ | $(".nav>ul li").mouseover(function(){ | ||
+ | if($(this).offset().left < $("#objLeft").offset().left) document.getElementById("objLeft").src = "https://static.igem.org/mediawiki/2014/8/8c/ObjLeft2.png"; | ||
+ | else document.getElementById("objLeft").src = "https://static.igem.org/mediawiki/2014/4/41/OUC-China_Index_Plasmid1.png"; | ||
+ | $("#objLeft").stop(false).animate({left:$(this).offset().left-50},800); | ||
+ | }); | ||
+ | $(".nav>ul").mouseout(function(){ | ||
+ | document.getElementById("objLeft").src = "https://static.igem.org/mediawiki/2014/8/8c/ObjLeft2.png"; | ||
+ | $("#objLeft").stop(false).animate({left:originalLeft},800,function(){ | ||
+ | document.getElementById("objLeft").src = "https://static.igem.org/mediawiki/2014/4/41/OUC-China_Index_Plasmid1.png"; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | </div> | ||
+ | <script> | ||
+ | // JavaScript Document | ||
+ | $(".pMenu").mouseover(function(){ | ||
+ | $(this).find("ul").slideDown(); | ||
+ | }); | ||
+ | $(".pMenu").mouseleave(function(){ | ||
+ | $(this).find("ul").slideUp(function(){ | ||
+ | $(this).clearQueue(); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | </div> | ||
+ | <div class = "main"> | ||
+ | <div class = "mainBox"></div> | ||
+ | <!--<ul class = "menu"> | ||
+ | <li><a href="#">team introduction</a></li> | ||
+ | <li><a href="#">member</a></li> | ||
+ | </ul> | ||
+ | 更改--> | ||
+ | <div style="width:1300px; margin:auto;"> | ||
+ | <div id="stt" class="menu"> | ||
+ | <dl> | ||
+ | <dt> | ||
+ | <span>team introduction</span> | ||
+ | </dt> | ||
+ | </dl> | ||
+ | <dl> | ||
+ | <dt> | ||
+ | <span>member</span> | ||
+ | </dt> | ||
+ | </dl> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class = "footer"> <img id = "top" src="https://static.igem.org/mediawiki/2014/b/b6/ToTop.png"/> | ||
+ | <script> | ||
+ | $("#top").click(function(){ | ||
+ | $(document).scrollTop(0); | ||
+ | }); | ||
+ | </script> | ||
+ | </div> | ||
</html> | </html> |
Revision as of 12:59, 16 October 2014