Difference between revisions of "Team:HZAU-China"

Line 1: Line 1:
 +
{{HZAU-China}}
 
<html>
 
<html>
  
 
<head>
 
<head>
    <meta charset="UTF-8">
+
  <meta charset="UTF-8">
    <style type="text/css">
+
  <style>
        #sideMenu,
+
    body {
        #top_title,
+
      background-color: rgb(249, 228, 137);
        #team_submenu {
+
    }
            display: none;
+
        }
+
  
        #content {
+
    #content {
            padding: 0px;
+
      background-color: rgb(249, 228, 137);
            width: 100%;
+
    }
            margin-top: 0px;
+
            margin-left: 0px;
+
        }
+
  
        #bodyContent h1,
+
    div.background_page {
        #bodyContent h2,
+
      transition: opacity 1s;
        #bodyContent h3,
+
      -webkit-transition: opacity 1s;
        #bodyContent h4,
+
    }
        #bodyContent h5 {
+
            margin-bottom: 0px;
+
        }
+
  
        #team_name {
+
    .fourC_div {
            display: none
+
      width: 100%;
        }
+
      margin-top: 48px;
 +
    }
  
        .global_wrapper {
+
    .fourC {
            padding: 0px 0px 0px 0px;
+
      width: 100%;
        }
+
      height: auto;
 +
    }
  
        #top_menu_14 {
 
            height: 16px;
 
        }
 
  
 +
    #anniu {
 +
      position: relative;
 +
      top: 70px;
 +
      transition: top 0.2s;
 +
      left: 50%;
 +
      margin: 0 0 0 -50px;
 +
    }
 +
    #anniu>img{
 +
      height:100px;
 +
    }
  
 +
    #anniu:hover {
 +
      top: 90px;
 +
    }
  
        div.nav_body {
+
    .di {
            position: fixed;
+
      width: 100%;
            padding: 7px 0 7px 0;
+
      position: relative;
            left: 0px;
+
      top: 600px;
            top: 16px;
+
    }
            width: 100%;
+
            min-width: 980px;
+
            height: auto;
+
            box-shadow: 0px 1px 3px #aaaaaa;
+
            z-index: 1;
+
            color: rgb(249, 228, 137);
+
            text-decoration-line: none;
+
            font-family: "Arial", Helvetica, sans-serif;
+
            background-color: #000;
+
            z-index: 99;
+
        }
+
  
        ul#nav_organ {
+
    #rongqi p {
            float: right;
+
      padding: 0;
            list-style: none;
+
      margin: 0;
            margin: 6px 0 6px 0;
+
    }
            text-decoration-line: none;
+
            font-family: "Arial", Helvetica, sans-serif;
+
            color: rgb(249, 228, 137);
+
            background-color: #000;
+
        }
+
  
        ul#nav_organ li {
+
    /*-- 轮播图整体样式-- */
            display: block;
+
            float: left;
+
        }
+
  
        a.nav_tissue {
+
    .zhanshiqu {
            padding: 8px 15px 8px 15px;
+
      position: relative;
            line-height: 23px;
+
      top: 400px;
            text-decoration-line: none;
+
    }
            font-family: "Arial", Helvetica, sans-serif;
+
            color: rgb(249, 228, 137);
+
            font-size: 17px;
+
        }
+
  
        span.caret {
+
    /*-- 轮播图主体样式-- */
            display: inline-block;
+
            margin-left: 2px;
+
            vertical-align: middle;
+
            width: 0;
+
            height: 0;
+
            border-left: 4px solid transparent;
+
            border-right: 4px solid transparent;
+
            border-top: 4px solid rgb(249, 228, 137);
+
        }
+
  
        .nav_cell {
+
    #rongqi {
            visibility: hidden;
+
      width: 950px;
            opacity: 0;
+
      height: 600px;
            display: block;
+
      margin: 20px auto;
            box-sizing: border-box;
+
      border-radius: 5px;
            left: auto;
+
      overflow: hidden;
            position: absolute;
+
      position: relative;
            top: 42px;
+
    }
            z-index: 1000;
+
            float: left;
+
            min-width: 160px;
+
            margin: 0 0 0 -4px;
+
            font-size: 14px;
+
            text-align: left;
+
            list-style: none;
+
            color: rgb(249, 228, 137);
+
            background-color: #000;
+
            background-clip: padding-box;
+
            border: 1px solid rgba(0, 0, 0, .15);
+
            border-radius: 4px;
+
            box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
+
            -webkit-transition: opacity 0.4s linear;
+
            -moz-transition: opacity 0.4s linear;
+
            -ms-transition: opacity 0.4s linear;
+
            -o-transition: opacity 0.4s linear;
+
            transition: opacity 0.4s linear;
+
        }
+
  
        .mw-content-ltr ul,
+
    /*-- 图片样式 --*/
        .mw-content-rtl .mw-content-ltr ul {
+
            margin: 0 0 0 -4px;
+
        }
+
  
        .shadow {
+
    .shiying {
            box-shadow: 0px 1px 3px rgb(249, 228, 137);
+
      width: 950px;
        }
+
      height: 600px;
 +
    }
  
        .nav_cell>li {
+
    #rongqi img {
            display: block;
+
      position: absolute;
            float: left;
+
      top: 0;
            clear: both;
+
      left: 950px;
            height: 30px;
+
      /*图片均位于右侧*/
        }
+
      transition: left 0.3s linear;
 +
      /*改变left值实现动画*/
 +
    }
  
        .nav_cell>li>a {
+
    #rongqi img.yundong {
            padding-top: 3px;
+
      left: 0;
            padding-bottom: 3px;
+
    }
            padding-left: 20px;
+
            padding-right: 20px;
+
            text-decoration-line: none;
+
            color: rgb(249, 228, 137);
+
        }
+
  
        .menu_item:hover .nav_cell {
+
    #rongqi img.left {
            visibility: visible;
+
      left: -950px;
            opacity: 1;
+
    }
        }
+
  
        .nav_tissue:hover {
+
    /*-- 页码样式 --*/
            cursor: pointer;
+
            color: rgb(249, 228, 137);
+
            text-decoration: none;
+
        }
+
  
        .HZAU_logo {
+
    #rongqi div {
            height: 36px;
+
      position: absolute;
            float: left;
+
      bottom: 0;
            margin: 0 0 0 7px;
+
      width: 100%;
            position: relative;
+
      line-height: 0;
         }
+
      text-align: center;
     </style>
+
      padding: 5px 0;
 +
      z-index: 2;
 +
    }
 +
 
 +
    #rongqi span {
 +
      display: inline-block;
 +
      width: 15px;
 +
      height: 10px;
 +
      margin: 0 3px;
 +
      border-radius: 5px;
 +
      background: white;
 +
      transition: width 0.3s;
 +
    }
 +
 
 +
    #rongqi span.yundong {
 +
      width: 25px;
 +
      background: #A08989;
 +
    }
 +
 
 +
    /*-- 图片描述的样式 --*/
 +
 
 +
    #rongqi p {
 +
      position: absolute;
 +
      bottom: 20px;
 +
      width: 100%;
 +
      line-height: 20px;
 +
      font-size: 14px;
 +
      text-indent: 5px;
 +
      color: white;
 +
      cursor: default;
 +
      opacity: 0;
 +
      transition: opacity 0.3s linear;
 +
    }
 +
 
 +
    #rongqi p.yundong {
 +
      opacity: 1;
 +
    }
 +
 
 +
    /*--齿轮样式--*/
 +
 
 +
    .hezi {
 +
      position: absolute;
 +
      top: 20px;
 +
      margin: 0 50%;
 +
      width: 950px;
 +
      height: 600px;
 +
      left: -475px;
 +
      opacity: 1;
 +
      transition: opacity 1s;
 +
    }
 +
 
 +
    @keyframes mymove {
 +
      from {}
 +
      to {
 +
         transform: rotate(360deg);
 +
      }
 +
     }
 +
 
 +
    @-moz-keyframes mymove {
 +
      from {}
 +
      to {
 +
        transform: rotate(360deg);
 +
      }
 +
    }
 +
 
 +
    @-webkit-keyframes mymove {
 +
      from {}
 +
      to {
 +
        transform: rotate(360deg);
 +
      }
 +
    }
 +
 
 +
    @-o-keyframes mymove {
 +
      from {}
 +
      to {
 +
        transform: rotate(360deg);
 +
      }
 +
    }
 +
 
 +
    @keyframes mymove_2 {
 +
      from {}
 +
      to {
 +
        transform: rotate(-360deg);
 +
      }
 +
    }
 +
 
 +
    @-moz-keyframes mymove_2 {
 +
      from {}
 +
      to {
 +
        transform: rotate(-360deg);
 +
      }
 +
    }
 +
 
 +
    @-webkit-keyframes mymove_2 {
 +
      from {}
 +
      to {
 +
        transform: rotate(-360deg);
 +
      }
 +
    }
 +
 
 +
    @-o-keyframes mymove_2 {
 +
      from {}
 +
      to {
 +
        transform: rotate(-360deg);
 +
      }
 +
    }
 +
 
 +
    .chilun_1 {
 +
      position: absolute;
 +
      top: -70px;
 +
      left: -80px;
 +
      width: 200px;
 +
      height: 200px;
 +
      animation: rotate 10s infinite;
 +
      -webkit-animation: mymove 10s infinite;
 +
      animation-timing-function: linear;
 +
      background: url(https://static.igem.org/mediawiki/2017/f/fb/HZAU_2017_gear_1.png);
 +
      background-size: 150px 150px;
 +
      background-repeat: no-repeat;
 +
      background-size: cover;
 +
      z-index: -1;
 +
    }
 +
 
 +
    .chilun_2 {
 +
      position: absolute;
 +
      top: 115px;
 +
      left: -105px;
 +
      width: 130px;
 +
      height: 130px;
 +
      background-size: cover;
 +
      animation: rotate 10s infinite;
 +
      -webkit-animation: mymove_2 10s infinite;
 +
      animation-timing-function: linear;
 +
      background: url(https://static.igem.org/mediawiki/2017/f/fb/HZAU_2017_gear_1.png);
 +
      background-size: 100px 100px;
 +
      background-repeat: no-repeat;
 +
      background-size: cover;
 +
      z-index: -1;
 +
    }
 +
 
 +
    .chilun_3 {
 +
      position: absolute;
 +
      bottom: 60px;
 +
      right: -100px;
 +
      width: 250px;
 +
      height: 250px;
 +
      background-size: cover;
 +
      animation: rotate 10s infinite;
 +
      -webkit-animation: mymove 10s infinite;
 +
      animation-timing-function: linear;
 +
      background: url(https://static.igem.org/mediawiki/2017/c/c0/T--HZAU-China--gear.png);
 +
      background-size: 250px 250px;
 +
      background-repeat: no-repeat;
 +
      background-size: cover;
 +
      z-index: -1;
 +
    }
 +
 
 +
    #tiaozhuan {
 +
      position: absolute;
 +
      top: -135px;
 +
    }
 +
 
 +
    /*--线框样式--*/
 +
 
 +
    .frame {
 +
      position: absolute;
 +
      top: -30px;
 +
      margin: 0 50%;
 +
      width: 1020px;
 +
      height: 660px;
 +
      left: -510px;
 +
      z-index: 1;
 +
    }
 +
 
 +
    .frame_tu {
 +
      width: 1020px;
 +
      height: 660px;
 +
    }
 +
  </style>
 
</head>
 
</head>
  
 
<body>
 
<body>
    <div class="nav_body">
+
  <div class="fourC_div">
        <a href="https://2017.igem.org/Team:HZAU-China" class="HZAU_logo" title="logo">
+
    <img class="fourC" src="https://static.igem.org/mediawiki/2017/8/84/T--HZAU-China--4C.png">
            <img src="https://static.igem.org/mediawiki/2017/b/bf/T--HZAU-China--logo.png" height="100%">
+
    <div>
        </a>
+
      <a id="anniu" href="#tiaozhuan"><img src="https://static.igem.org/mediawiki/2017/7/7e/T--HZAU-China--arrow.gif"></a>
        <ul id="nav_organ">
+
            <li class="menu_item">
+
                <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China">Home</a>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue" href="">Project<span class="caret"></span></a>
+
                <ul class="nav_cell shadow">
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Description">Description</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Design">Design</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Results">Results</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Demonstrate">Demonstrate</a>
+
                    </li>
+
                </ul>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue">Wetlab<span class="caret"></span></a>
+
                <ul class="nav_cell shadow">
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Experiments">Experiments</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Improve">Improve</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/InterLab">InterLab</a>
+
                    </li>
+
                </ul>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue">Drylab<span class="caret"></span></a>
+
                <ul class="nav_cell shadow">
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Model">Model</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Software">Software</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Hardware">Hardware</a>
+
                    </li>
+
                </ul>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue">HP<span class="caret"></span></a>
+
                <ul class="nav_cell shadow">
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Silver">Silver HP</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Gold_Integrated">Integrated and Gold</a>
+
                    </li>
+
                </ul>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue">Team<span class="caret"></span></a>
+
                <ul class="nav_cell shadow">
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Team">Members</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Collaborations">Collaborations</a>
+
                    </li>
+
                    <li>
+
                        <a href="https://2017.igem.org/Team:HZAU-China/Attributions">Attributions</a>
+
                    </li>
+
                </ul>
+
            </li>
+
            <li class="menu_item">
+
                <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China/Safety">Safety</a>
+
            </li>
+
            <li class="menu_item" style="padding-right:15px">
+
                <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China/Basic_Part">Parts</a>
+
            </li>
+
        </ul>
+
 
     </div>
 
     </div>
 +
  </div>
 +
  <div class="zhanshiqu">
 +
    <!-- 大小齿轮们 -->
 +
    <div class="hezi">
 +
      <div id="tiaozhuan"></div>
 +
      <div class="chilun_1"></div>
 +
      <div class="chilun_2"></div>
 +
      <div class="chilun_3"></div>
 +
    </div>
 +
    <div class="frame">
 +
      <img class="frame_tu" src="https://static.igem.org/mediawiki/2017/1/17/T--HZAU-China--frame.png" />
 +
    </div>
 +
    <div id="rongqi">
 +
      <!-- 插入轮播的图片们 -->
 +
      <img class="yundong shiying" src="https://static.igem.org/mediawiki/2017/7/7b/T--HZAU-China--zhouqi1.gif" />
 +
      <img class="shiying" src="https://static.igem.org/mediawiki/2017/d/d9/T--HZAU-China--dCas91.gif" />
 +
      <img class="shiying" src="https://static.igem.org/mediawiki/2017/3/35/T--HZAU-China--guangkong1.gif" />
 +
      <!-- 插入轮播的页码们 -->
 +
      <div>
 +
        <span class="yundong" name="0"></span>
 +
        <span name="1"></span>
 +
        <span name="2"></span>
 +
      </div>
 +
      <!-- 插入图片的描述们 -->
 +
      <p class="yundong"></p>
 +
      <p></p>
 +
      <p></p>
 +
    </div>
 +
  </div>
 +
  <div>
 +
    <img class="di" src="https://static.igem.org/mediawiki/2017/c/c7/T--HZAU-China--di.png">
 +
  </div>
 
</body>
 
</body>
 +
<script>
 +
  //---------主角:轮播图函数-------------
 +
  function rongqi() {
 +
    var rongqi = document.getElementById("rongqi"),
 +
      imgs = rongqi.getElementsByTagName("img"), //图片们
 +
      pages = rongqi.getElementsByTagName("span"), //页码们
 +
      descrips = rongqi.getElementsByTagName("p"), //描述们
 +
      length = imgs.length, //图片数目
 +
      current = 1; //current为当前活跃的图片、页码、描述的编号
 +
 +
 +
    function changeSlide() { //切换图片的函数
 +
      for (var i = 0; i < length; i++) {
 +
        if (i == current) {
 +
          imgs[i].className = "yundong shiying";
 +
          pages[i].className = "yundong";
 +
          descrips[i].className = "yundong";
 +
        } else {
 +
          pages[i].className = "";
 +
          descrips[i].className = "";
 +
          if (i < current) {
 +
            imgs[i].className = "left";
 +
          } else {
 +
            imgs[i].className = "";
 +
          }
 +
        }
 +
      }
 +
      current++; //自增1
 +
      if (current >= length) {
 +
        current = 0;
 +
      }
 +
    }
 +
 +
    //每2s调用changeSlide函数进行图片轮播
 +
    var slideon = setInterval(changeSlide, 8000);
 +
 +
    rongqi.onmouseover = function () {
 +
      clearInterval(slideon); //当鼠标移入时清除轮播事件
 +
    }
 +
    rongqi.onmouseout = function () {
 +
      slideon = setInterval(changeSlide, 8000); //当鼠标移出时重新开始轮播事件
 +
    }
 +
 +
    for (var i = 0; i < length; i++) {  //定义鼠标移入页码事件
 +
      pages[i].onmouseover = function () {
 +
        current = this.getAttribute("name");  //得到当前鼠标指的页码
 +
        changeSlide();
 +
      }
 +
    }
 +
 +
  }
 +
 +
  rongqi();
  
 +
</script>
  
  
 
</html>
 
</html>

Revision as of 19:03, 31 October 2017