Difference between revisions of "Team:HZAU-China"

 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!DOCTYPE html>
+
{{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: 48px auto 0 auto;
 
     }
 
     }
  
     .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;
+
      padding: 7px 0 7px 0;
+
      left: 0px;
+
      top: 16px;
+
 
       width: 100%;
 
       width: 100%;
       min-width: 980px;
+
       position: relative;
       height: 36px;
+
       top: 600px;
       box-shadow: 0px 1px 3px #aaaaaa;
+
       margin: -350px auto 0 auto;
      z-index: 1;
+
       vertical-align: middle;
      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 auto;
+
      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;
+
    .zhanshiqu {
 +
       position: relative;
 
     }
 
     }
  
     a.nav_tissue {
+
     /*-- 轮播图主体样式-- */
      padding: 8px 15px 8px 15px;
+
 
      line-height: 23px;
+
    .bianda {
      text-decoration-line: none;
+
       width: 1200px;
      font-family: "Arial", Helvetica, sans-serif;
+
       margin: 300px auto 0 auto;
       color: rgb(249, 228, 137);
+
       font-size: 17px;
+
 
     }
 
     }
  
     span.caret {
+
     #rongqi {
 +
      width: 950px;
 +
      height: 570px;
 +
      margin: 0 auto;
 +
      border-radius: 5px;
 +
      overflow: hidden;
 +
      position: relative;
 +
    }
 +
 
 +
    /*-- 图片样式 --*/
 +
 
 +
    .shiying {
 +
      width: 950px;
 +
      height: 570px;
 +
    }
 +
 
 +
    #rongqi img {
 +
      position: absolute;
 +
      top: 0;
 +
      left: 950px;
 +
      /*图片均位于右侧*/
 +
      transition: left 0.3s linear;
 +
      /*改变left值实现动画*/
 +
    }
 +
 
 +
    #rongqi img.yundong {
 +
      left: 0;
 +
    }
 +
 
 +
    #rongqi img.left {
 +
      left: -950px;
 +
    }
 +
 
 +
    /*-- 页码样式 --*/
 +
 
 +
    #rongqi div {
 +
      position: absolute;
 +
      bottom: 0;
 +
      width: 100%;
 +
      line-height: 0;
 +
      text-align: center;
 +
      padding: 5px 0;
 +
      z-index: 2;
 +
    }
 +
 
 +
    #rongqi span {
 
       display: inline-block;
 
       display: inline-block;
       margin-left: 2px;
+
       width: 50px;
       vertical-align: middle;
+
       height: 22px;
       width: 0;
+
       margin: 0 10px;
      height: 0;
+
       border-radius: 11px;
       border-left: 4px solid transparent;
+
       background: white;
       border-right: 4px solid transparent;
+
       transition: width 0.3s;
       border-top: 4px solid rgb(249, 228, 137);
+
 
     }
 
     }
  
     .nav_cell {
+
     #rongqi span.yundong {
       visibility: hidden;
+
       width: 78px;
       opacity: 0;
+
       background: #A08989;
      display: block;
+
    }
      box-sizing: border-box;
+
 
      left: auto;
+
    /*-- 图片描述的样式 --*/
 +
 
 +
    #rongqi p {
 
       position: absolute;
 
       position: absolute;
       top: 42px;
+
       bottom: 20px;
       z-index: 1000;
+
       width: 100%;
       float: left;
+
       line-height: 20px;
      min-width: 160px;
+
      margin: 0 0 0 -4px;
+
 
       font-size: 14px;
 
       font-size: 14px;
       text-align: left;
+
       text-indent: 5px;
      list-style: none;
+
       color: white;
       color: rgb(249, 228, 137);
+
       cursor: default;
       background-color: #000;
+
       opacity: 0;
       background-clip: padding-box;
+
       transition: opacity 0.3s linear;
      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,
+
     #rongqi p.yundong {
    .mw-content-rtl .mw-content-ltr ul {
+
       opacity: 1;
       margin: 0 0 0 -4px;
+
 
     }
 
     }
  
     .shadow {
+
    /*--齿轮样式--*/
       box-shadow: 0px 1px 3px rgb(249, 228, 137);
+
 
 +
     .hezi {
 +
       position: absolute;
 +
      top: 20px;
 +
      margin: 0 50%;
 +
      width: 950px;
 +
      height: 600px;
 +
      left: -475px;
 +
      opacity: 1;
 +
      transition: opacity 1s;
 
     }
 
     }
  
     .nav_cell>li {
+
     @keyframes mymove {
       display: block;
+
       from {}
       float: left;
+
       to {
      clear: both;
+
        transform: rotate(360deg);
       height: 30px;
+
       }
 
     }
 
     }
  
     .nav_cell>li>a {
+
     @-moz-keyframes mymove {
      padding-top: 3px;
+
       from {}
      padding-bottom: 3px;
+
       to {
       padding-left: 20px;
+
        transform: rotate(360deg);
       padding-right: 20px;
+
       }
      text-decoration-line: none;
+
       color: rgb(249, 228, 137);
+
 
     }
 
     }
  
     .menu_item:hover .nav_cell {
+
     @-webkit-keyframes mymove {
       visibility: visible;
+
       from {}
       opacity: 1;
+
       to {
 +
        transform: rotate(360deg);
 +
      }
 
     }
 
     }
  
     .HZAU_logo {
+
    @-o-keyframes mymove {
       height: 36px;
+
      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: 630px;
 +
      left: -510px;
 +
      z-index: 1;
 +
    }
 +
 
 +
    .frame_tu {
 +
      width: 1020px;
 +
       height: 630px;
 
     }
 
     }
 
   </style>
 
   </style>
Line 157: Line 294:
  
 
<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/8d/T--HZAU-China--4C.gif">
      <img src="https://static.igem.org/mediawiki/2017/b/bf/T--HZAU-China--logo.png" height="100%">
+
     <div>
     </a>
+
      <a id="anniu" href="#tiaozhuan">
    <ul id="nav_organ">
+
         <img src="https://static.igem.org/mediawiki/2017/7/7e/T--HZAU-China--arrow.gif">
      <li class="Home">
+
      </a>
         <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China">Home</a>
+
    </div>
      </li>
+
  </div>
      <li class="Team">
+
  <div class="bianda">
        <a class="nav_tissue" href="https://2017.igem.org/Team:HZAU-China/Team">Team</a>
+
    <div class="zhanshiqu">
       </li>
+
       <!-- 大小齿轮们 -->
       <li class="Project menu_item">
+
       <div class="hezi">
         <a class="nav_tissue" href="">Project<span class="caret"></span></a>
+
         <div id="tiaozhuan"></div>
         <ul class="nav_cell shadow">
+
         <div class="chilun_1"></div>
          <li>
+
        <div class="chilun_2"></div>
            <a href="https://2017.igem.org/Team:HZAU-China/Description">Description</a>
+
        <div class="chilun_3"></div>
          </li>
+
      </div>
          <li>
+
      <div class="frame">
            <a href="https://2017.igem.org/Team:HZAU-China/Design">Design</a>
+
        <img class="frame_tu" src="https://static.igem.org/mediawiki/2017/1/17/T--HZAU-China--frame.png" />
          </li>
+
      </div>
          <li>
+
      <div id="rongqi">
            <a href="https://2017.igem.org/Team:HZAU-China/Experiments">Experiments</a>
+
        <!-- 插入轮播的图片们 -->
          </li>
+
        <img class="yundong shiying" src="https://static.igem.org/mediawiki/2017/6/64/T--HZAU-China--confirm2.png" />
          <li>
+
         <img class="shiying" src="https://static.igem.org/mediawiki/2017/4/4a/T--HZAU-China--confirm3.png" />
            <a href="https://2017.igem.org/Team:HZAU-China/Notebook">Notebook</a>
+
        <img class="shiying" src="https://static.igem.org/mediawiki/2017/8/88/T--HZAU-China--confirm4.png" />
          </li>
+
         <!-- 插入轮播的页码们 -->
          <li>
+
         <div style="top: 543px;">
            <a href="https://2017.igem.org/Team:HZAU-China/InterLab">InterLab</a>
+
          <span class="yundong" name="0"></span>
          </li>
+
           <span name="1"></span>
          <li>
+
           <span name="2"></span>
            <a href="https://2017.igem.org/Team:HZAU-China/Model">Model</a>
+
        </div>
          </li>
+
        <!-- 插入图片的描述们 -->
          <li>
+
         <p class="yundong"></p>
            <a href="https://2017.igem.org/Team:HZAU-China/Results">Results</a>
+
         <p></p>
          </li>
+
        <p></p>
          <li>
+
      </div>
            <a href="https://2017.igem.org/Team:HZAU-China/Demonstrate">Demonstrate</a>
+
    </div>
          </li>
+
  </div>
          <li>
+
  <div>
            <a href="https://2017.igem.org/Team:HZAU-China/Improve">Improve</a>
+
    <img class="di" src="https://static.igem.org/mediawiki/2017/c/c7/T--HZAU-China--di.png">
          </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Attributions">Attributions</a>
+
          </li>
+
         </ul>
+
      </li>
+
      <li class="Parts menu_item">
+
        <a class="nav_tissue" href="">Parts<span class="caret"></span></a>
+
        <ul class="nav_cell shadow">
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Parts">Parts</a>
+
          </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Basic Parts">Basic Parts</a>
+
          </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Composite Parts">Composite Parts</a>
+
          </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Part Collection">Part Collection</a>
+
          </li>
+
         </ul>
+
      </li>
+
      <li class="Safety">
+
         <a class="nav_tissue" href="">Safety</a>
+
      </li>
+
      <li class="HP menu_item">
+
        <a class="nav_tissue" href="">Human Practices<span class="caret"></span></a>
+
        <ul class="nav_cell shadow">
+
           <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Silver HP">Silver HP</a>
+
           </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Integrated and Gold">Integrated and Gold</a>
+
          </li>
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Public Engagement">Public Engagement</a>
+
          </li>
+
         </ul>
+
      </li>
+
      <li class="Awards menu_item">
+
        <a class="nav_tissue" href="">Awards<span class="caret"></span></a>
+
         <ul class="nav_cell shadow">
+
          <li>
+
            <a href="https://2017.igem.org/Team:HZAU-China/Hardware">Hardware</a>
+
          </li>
+
        </ul>
+
      </li>
+
      <li class="Judging Form">
+
        <a class="nav_tissue" href="https://igem.org/2017_Judging_Form?id=2381">Judging Form</a>
+
      </li>
+
    </ul>
+
 
   </div>
 
   </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, 60000);
 +
 +
    rongqi.onmouseover = function () {
 +
      clearInterval(slideon); //当鼠标移入时清除轮播事件
 +
    }
 +
    rongqi.onmouseout = function () {
 +
      slideon = setInterval(changeSlide, 60000); //当鼠标移出时重新开始轮播事件
 +
    }
 +
 +
    for (var i = 0; i < length; i++) {  //定义鼠标移入页码事件
 +
      pages[i].onmouseover = function () {
 +
        current = this.getAttribute("name");  //得到当前鼠标指的页码
 +
        changeSlide();
 +
      }
 +
    }
 +
 +
  }
 +
 +
  rongqi();
  
 +
</script>
  
  
 
</html>
 
</html>

Latest revision as of 01:31, 2 November 2017