Team:NYMU-Taipei/Templates/Header

From 2011.igem.org

(Difference between revisions)
 
(132 intermediate revisions not shown)
Line 1: Line 1:
-
<!---top--->
+
{{:Team:NYMU-Taipei/Templates/Header/menubar}}
-
<html>
+
-
<head>
+
-
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
-
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+
-
  <script type="text/javascript">
+
-
      $(document).ready(function(){
+
-
+
-
    $(function(){
+
-
    var path = location.pathname.substring(1);
+
-
    var last = path.split("/");
+
-
    if ( last[1] ) {
+
-
      $('#headover ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","#000");
+
-
    }
+
-
    else {
+
-
      $('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","#000");
+
-
    }
+
-
    });
+
-
+
-
+
-
$('#menuback').mouseover(function() {
+
-
    $('#headover').stop().animate({height: '180px',width: '823px',left: '0px',top:'0px'},1000);
+
-
+
-
    });
+
-
 
+
-
    $('#menu').mouseleave(function() {
+
-
    $('.listhead').not('.curlink').css("color","#ffffff");
+
-
    $('.listmain').not('.curlink').css("color","#dddddd");
+
-
    $('#headover ul').fadeOut(500);
+
-
    $('#headover').stop().animate({height:'0px',width:'425px',left:'400px',top:'180px'},1000);
+
-
    });
+
-
+
-
    $('.listhead').mouseover(function(){
+
-
    $('.listhead').not('.curlink').css("color","#ffffff");
+
-
    $(this).css("color","#444444");
+
-
    $('#headover ul').css("display","none");
+
-
    var vActive = $(this).attr("id");
+
-
    $('.'+vActive).stop(true, true).fadeIn(500);
+
-
    });
+
-
+
-
    $('.listmain').mouseover(function(){
+
-
    $('.listmain').not('.curlink').css("color","#dddddd");
+
-
    $(this).css("color","#000000");
+
-
    });
+
-
<!---li color-->
+
-
    $('#headover').mouseleave(function(){
+
-
    $('.listmain').not('.curlink').css("color","#dddddd");
+
-
    });
+
-
+
-
  });
+
-
  </script>
+
-
 
+
-
<style type="text/css">
+
-
 
+
-
 
+
-
caption,th
+
-
{
+
-
text-align: left;
+
-
border-top-color: #FFF;
+
-
border-right-color: #FFF;
+
-
border-bottom-color: #FFF;
+
-
border-left-color: #FFF;
+
-
padding: 1px;
+
-
color: #000;
+
-
}
+
-
 
+
-
 
+
-
  a:link {color:#20548f;}
+
-
  a:visited {color:#20548f;}
+
-
  a:hover {color:#20548f;}
+
-
  a:active {color:#20548f;}
+
-
+
-
  #top-section {
+
-
  background-color: #ffffff;
+
-
  height: 100px;
+
-
  border: none;
+
-
  width:910px;
+
-
  height:20px}
+
-
+
-
  #p-logo {
+
-
  position: absolute;
+
-
  display: none;}
+
-
+
-
  #search-controls {
+
-
  display: none;}
+
-
+
-
  #menubar.left-menu {
+
-
  position: absolute;
+
-
  top:0px;
+
-
  left:0px;}
+
-
+
-
  #menubar.right-menu {
+
-
  position: absolute;
+
-
  top:0px;
+
-
  right:0px;}
+
-
+
-
+
-
  #menubar a:active,#menubar a:hover,#menubar a:link,#menubar a:visited {
+
-
  color: #000000;}
+
-
+
-
  #footer-box {
+
-
  width:900px;}
+
-
+
-
+
-
+
-
  .firstHeading {
+
-
    display: none;}
+
-
+
-
  #content {
+
-
    width: 900px;
+
-
    border: none;
+
-
    font-family: helvetica, arial, sans-serif;
+
-
    color: #555555}
+
-
+
-
  #title {
+
-
    width:900px;
+
-
    height:55px;
+
-
    position: relative;
+
-
    top: 0px;
+
-
    left: 0px;}
+
-
+
-
  #paralogo {
+
-
    width:400px;
+
-
    height:50px;
+
-
    position: relative;
+
-
    top: 0px;
+
-
    left: 20px;}
+
-
+
-
  #implogo {
+
-
    width:200px;
+
-
    height:50px;
+
-
    position: absolute;
+
-
    top: 0px;
+
-
    left: 435px;}
+
-
+
-
  #igemlogo {
+
-
    width:84px;
+
-
    height:50px;
+
-
    position:absolute;
+
-
    top:0px;
+
-
    left:615px;}
+
-
+
-
  #csynbilogo {
+
-
    width:140px;
+
-
    height:35px;
+
-
    position:absolute;
+
-
    top:-10px;
+
-
    left:695px;}
+
-
+
-
  #csbl {
+
-
    width:140px;
+
-
    height:35px;}
+
-
+
-
  #belink {
+
-
    width:200px;
+
-
    height:16px;
+
-
    position: absolute;
+
-
    top: 25px;
+
-
    font-size:1em;
+
-
    left: 697px;
+
-
    font-weight:500;}
+
-
+
-
  #belink a {
+
-
    text-decoration:none;}
+
-
+
-
  #mblink {
+
-
    width:205px;
+
-
    height:16px;
+
-
    position: absolute;
+
-
    top: 42px;
+
-
    font-size:1em;
+
-
    left: 697px;
+
-
    font-weight:500;}
+
-
+
-
  #mblink a {
+
-
    text-decoration:none;}
+
-
+
-
  #menu {
+
-
    width:800px;
+
-
    height:150px;
+
-
    position: relative;
+
-
    top: 0px;
+
-
    left: 0px;}
+
-
+
-
  #menuback {
+
-
width:150px;
+
-
height:180px;
+
-
position: absolute;
+
-
top: 0px;
+
-
left: -1px;
+
-
background-color: #999
+
-
}
+
-
+
-
  #headpic {
+
-
width:910px;
+
-
height:180px;
+
-
position: absolute;
+
-
top:
+
-
0px;
+
-
left: 75px;
+
-
background-image: url(http://gel.ym.edu.tw/~evelyn132/demo3/out.png);
+
-
background-repeat: no-repeat;
+
-
}
+
-
+
-
  #headover {
+
-
width: 1px;
+
-
height:0;
+
-
position: absolute;
+
-
top: 183px;
+
-
left: 833px;
+
-
background-image:none;
+
-
background-repeat: repeat-y;
+
-
background-position: 0px 0px;
+
-
margin-top: 0px;
+
-
padding-top: 0px;
+
-
        background-color: #666666;
+
-
}
+
-
+
-
  a {
+
-
    outline:none;}
+
-
+
-
  #headtit{
+
-
font-family: helvetica, arial, sans-serif;
+
-
font-size: 1.2em;
+
-
color: #ffffff;
+
-
position: absolute;
+
-
top: 1px;
+
-
right: 23px;
+
-
}
+
-
+
-
  .dark{
+
-
    color: #dddddd;}
+
-
+
-
  .highlight{
+
-
    color: #ea8828;}
+
-
+
-
  #menulist{
+
-
position: absolute;
+
-
top: 0px;
+
-
list-style: none;
+
-
}
+
-
+
-
  #menulist li{
+
-
height: 30px;
+
-
text-align: left;
+
-
    }
+
-
+
-
  #menulist li a{
+
-
font-weight: 100;
+
-
font-size: 1.2em;
+
-
text-decoration: none;
+
-
font-family: helvetica, arial, sans-serif;
+
-
color: #000;
+
-
}
+
-
+
-
  #headover ul{
+
-
    list-style: none;
+
-
    display: none;
+
-
    position: absolute;
+
-
    top: 0.2em;
+
-
    left: 0.2em;
+
-
    }
+
-
+
-
  #headover ul ul{
+
-
    position: absolute;
+
-
    width:10em;
+
-
    top:-0.2em;
+
-
    left: 10em;
+
-
    list-style:none;}
+
-
+
-
  #headover ul li{
+
-
    height: 2em;
+
-
    }
+
-
+
-
  #headover ul li a{
+
-
    font-weight: 110;
+
-
    font-size: 1.2em;
+
-
    text-decoration: none;
+
-
    font-family: helvetica, arial, sans-serif;
+
-
    color: #dddddd;}
+
-
 
+
-
</style>
+
-
</head>
+
-
<body>
+
-
 
+
-
  <div id="page"><!-- group -->
+
-
  <div class="grpelem" id="n1"><!-- image -->
+
-
<table width="800">
+
-
<tr>
+
-
<th><img id="n1_img" src="http://igem.ym.edu.tw/2011pv/images/Igem%20Logo.png" alt="" width="125" height="96"/></th>
+
-
<th><p>Tailoring Your Avatar</br>a wireless neuro-stimulator</p> </th>
+
-
<th><img id="n9_img" align="right" src="http://igem.ym.edu.tw/2011pv/images/nymulogo.jpg" alt="" width="381" height="105"/></th>
+
-
</tr>
+
-
</table>
+
-
</div>
+
-
<div class="grpelem" id="n11"></div>
+
-
  <div id='menu'>
+
-
  <div id='menuback'>
+
-
    <ul id='menulist'>
+
-
    <li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea' class='listhead' id='Idea'>Idea</a></li>
+
-
    <li><a href='https://2011.igem.org/Team:NYMU-Taipei/Design' class='listhead' id='Design'>Design</a></li>
+
-
    <li><a href='https://2011.igem.org/Team:NYMU-Taipei/Result' class='listhead' id='Result'>Result</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/STS' class='listhead' id='STS'>STS</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/About Us' class='listhead' id='AboutUs'>About Us</a></li>
+
-
    </ul>
+
-
  </div>
+
-
  <div id='headpic'>
+
-
    <div id='headover'>
+
-
  <ul class='Idea'>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Inspiration' class='listmain' id='results'>Inspiration</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/On Interface and Biomedicine' class='listmain' id='results'>On Interface and Biomedicine</a></li>
+
-
</ul>
+
-
 
+
-
  <ul class='Design'>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Information Safety' class='listmain' id='results'>Information Safety</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Magnetic Enlightenment' class='listmain' id='results'>Magnetic Enlightenment</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/BLOC-MAGNETO Worldw' class='listmain' id='results'>BLOC-MAGNETO Worldw</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Software' class='listmain' id='results'>Software</a></li>
+
-
</ul>
+
-
 
+
-
 
+
-
  <ul class='Result'>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/ResultsReviews' class='listmain' id='results'>Results / Reviews</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Demonstration' class='listmain' id='results'>Demonstration</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Parts' class='listmain' id='results'>Parts</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Achievements' class='listmain' id='results'>Achievements</a></li>
+
-
</ul>
+
-
 
+
-
  <ul class='STS'>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Neuroethics' class='listmain' id='results'>Neuroethics</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Bioinfosafety' class='listmain' id='results'>Bioinfosafety</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Human Practices' class='listmain' id='results'>Human Practices</a></li>
+
-
</ul>
+
-
 
+
-
<ul class='AboutUs'>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/The School' class='listmain' id='results'>The School</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/The Team' class='listmain' id='results'>The Team</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/International Collaboration' class='listmain' id='results'>International Collaboration</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/China Meetup' class='listmain' id='results'>China Meetup</a></li>
+
-
<li><a href='https://2011.igem.org/Team:NYMU-Taipei/idea/Press' class='listmain' id='results'>Press</a></li>
+
-
</ul>
+
-
    </div>
+
-
  </div>
+
-
  </div>
+
-
 
+
-
 
+
-
 
+
-
  </body>
+
-
 
+
-
</html>
+

Latest revision as of 15:07, 5 October 2011

Slide Down Box Menu with jQuery and CSS3