User:Benjamin Miller

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
Current revision (11:42, 23 September 2010) (view source)
 
(8 intermediate revisions not shown.)
Line 2: Line 2:
  <head>
  <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <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" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-
    <script type="text/javascript">
+
  <script type="text/javascript">
-
    $(document).ready(function(){
+
  $(document).ready(function(){
-
      $('#lside1').mouseover(function() {
+
 
-
      $('#lside1').stop().animate({backgroundPosition: '0px 0px'}, 1000);
+
$(function(){
-
      });
+
var path = location.pathname.substring(1);
-
      $('#lside1').mouseleave(function() {
+
if ( path )
-
      $('#lside1').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
+
$('#headover ul li a[href$="http://openwetware.org/wiki/IGEM:Imperial/2010"]').addClass("curlink");
-
      });
+
var vCurlink = $('#headover ul li a[href$="http://openwetware.org/wiki/IGEM:Imperial/2010"]').attr("id");
-
$('#lside2').mouseover(function() {
+
$('#'+vCurlink+'.listhead').addClass('curlink');
-
      $('#lside2').stop().animate({backgroundPosition: '0px 0px'}, 1000);
+
$('.curlink').css("color","#ea8828");
-
      });
+
});
-
      $('#lside2').mouseleave(function() {
+
 
-
      $('#lside2').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
+
-
      });
+
-
$('#lside3').mouseover(function() {
+
-
      $('#lside3').stop().animate({backgroundPosition: '0px 0px'}, 1000);
+
-
      });
+
-
      $('#lside3').mouseleave(function() {
+
-
      $('#lside3').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
+
-
      });
+
$('#menuback').mouseover(function() {
$('#menuback').mouseover(function() {
-
      $('#headover').stop().animate({height:'150px',top:'0px'},1000);
+
$('#headover').stop().animate({height:'150px',top:'0px'},1000);
-
      });
+
});
-
      $('#menu').mouseleave(function() {
+
 
-
      $('#headover ul').fadeOut(1000);
+
$('#menu').mouseleave(function() {
-
      $('#headover').stop().animate({height:'50px',top:'100px'},1000);
+
$('.listhead,.listmain').not('.curlink').css("color","#dddddd");
-
      });
+
$('#headover ul').fadeOut(500);
-
$('#lpro').mouseover(function(){
+
$('#headover').stop().animate({height:'50px',top:'100px'},1000);
-
      $('#headover ul').css("display","none");
+
});
-
      $('#headlistpro1,#headlistpro2').stop().fadeIn(500);
+
 
-
      });
+
$('.listhead').mouseover(function(){
-
$('#lpla').mouseover(function(){
+
$('.listhead').not('.curlink').css("color","#dddddd");
-
      $('#headover ul').css("display","none");
+
$(this).css("color","#ea8828");
-
      $('#headlistpla1,#headlistpla2').stop().fadeIn(500);
+
$('#headover ul').css("display","none");
-
      });
+
var vActive = $(this).attr("id");
-
$('#lres').mouseover(function(){
+
$('.'+vActive).stop().fadeIn(500);
-
      $('#headover ul').css("display","none");
+
});
-
      $('#headlistres').stop().fadeIn(500);
+
 
-
      });
+
$('.listmain').mouseover(function(){
-
$('#lext').mouseover(function(){
+
$('.listmain').not('.curlink').css("color","#dddddd");
-
      $('#headover ul').css("display","none");
+
$(this).css("color","#ea8828");
-
      $('#headlistext').stop().fadeIn(500);
+
});
-
      });
+
 
-
    });
+
  });
-
</script>
+
  </script>
   <style type="text/css">
   <style type="text/css">
Line 82: Line 74:
   #menu {
   #menu {
-
     width:100px;
+
     width:900px;
     height:150px;
     height:150px;
     position: relative;
     position: relative;
Line 111: Line 103:
     left: 0px;
     left: 0px;
     background: url(http://openwetware.org/images/d/d8/Imperialigemheadoverone.png) 0px 0px no-repeat; }
     background: url(http://openwetware.org/images/d/d8/Imperialigemheadoverone.png) 0px 0px no-repeat; }
-
 
-
  #side1 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    position: relative;
 
-
    top: 70px;
 
-
    left: 650px;}
 
-
 
-
  #lside1 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    background: url(http://openwetware.org/images/d/df/Imperialigemsideone.jpg) -250px 0px no-repeat;
 
-
    position: absolute;
 
-
    top: 0px;
 
-
    left: 0px;}
 
-
 
-
  #side2 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    position: absolute;
 
-
    top: 150px;
 
-
    left: 0px;}
 
-
 
-
  #lside2 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    background: url(http://openwetware.org/images/6/66/Imperialigemsidetwo.jpg) -250px 0px no-repeat;
 
-
    position: absolute;
 
-
    top: 0px;
 
-
    left: 0px;}
 
-
 
-
  #side3 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    position: absolute;
 
-
    top: 150px;
 
-
    left: 0px;}
 
-
 
-
  #lside3 {
 
-
    width: 250px;
 
-
    height: 100px;
 
-
    background: url(http://openwetware.org/images/e/ea/Imperialigemsidethree.jpg) -250px 0px no-repeat;
 
-
    position: absolute;
 
-
    top: 0px;
 
-
    left: 0px;}
 
   a {
   a {
Line 176: Line 123:
   #menulist{
   #menulist{
     position: absolute;
     position: absolute;
-
     top: 1.2em;
+
     top: 16px;
-
     left: 0.2em;
+
     left: 3px;
     list-style: none;}
     list-style: none;}
   #menulist li{
   #menulist li{
-
     height: 2.4em;
+
     height: 30px;
     }
     }
Line 189: Line 136:
     text-decoration: none;
     text-decoration: none;
     font-family: helvetica, arial, sans-serif;
     font-family: helvetica, arial, sans-serif;
-
     color: #ffffff;}
+
     color: #dddddd;}
   #headover ul{
   #headover ul{
Line 213: Line 160:
     text-decoration: none;
     text-decoration: none;
     font-family: helvetica, arial, sans-serif;
     font-family: helvetica, arial, sans-serif;
-
     color: #cccccc;}
+
     color: #dddddd;}
   </style>
   </style>
Line 229: Line 176:
   <div id='menuback'>
   <div id='menuback'>
     <ul id='menulist'>
     <ul id='menulist'>
-
     <li><a href='#' id='lpro'>Project</a></li>
+
     <li><a href='#' class='listhead' id='project'>Project</a></li>
-
     <li><a href='#' id='lpla'>Plan</a></li>
+
     <li><a href='#' class='listhead' id='plan'>Plan</a></li>
-
     <li><a href='#' id='lres'>Results</a></li>
+
     <li><a href='#' class='listhead' id='results'>Results</a></li>
-
     <li><a href='#' id='lext'>Extra</a></li>
+
     <li><a href='#' class='listhead' id='extra'>Extra</a></li>
     </ul>
     </ul>
   </div>
   </div>
Line 238: Line 185:
     <div id='headover'>
     <div id='headover'>
     <p id='headtit'>Parasight<span class='dark'> &nbsp;<span class='highlight'>|</span>&nbsp;&nbsp;Parasite detection with a rapid response</span></p>
     <p id='headtit'>Parasight<span class='dark'> &nbsp;<span class='highlight'>|</span>&nbsp;&nbsp;Parasite detection with a rapid response</span></p>
-
     <ul id='headlistpro1'>
+
     <ul class='project'>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010'>Overview</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010' class='listmain' id='project'>Overview</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Detection_module'>Detection Module</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Detection_module' class='listmain' id='project'>Detection Module</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Fast_Response_module'>Fast Response Module</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Fast_Response_module' class='listmain' id='project'>Fast Response Module</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Output_module'>Output Module</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Output_module' class='listmain' id='project'>Output Module</a></li>
-
       <ul id='headlistpro2'>
+
       <ul class='project'>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Ethics'>Ethics</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Ethics' class='listmain' id='project'>Ethics</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Parts'>Parts</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Parts' class='listmain' id='project'>Parts</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Papers'>Papers</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Papers' class='listmain' id='project'>Papers</a></li>
       </ul>
       </ul>
     </ul>
     </ul>
-
     <ul id='headlistpla1'>
+
     <ul class='plan'>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Strategy'>Strategy</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Strategy' class='listmain' id='plan'>Strategy</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Parts/Synthesis'>Synthesis</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Parts/Synthesis' class='listmain' id='plan'>Synthesis</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Lab_Work'>Lab Work</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Lab_Work' class='listmain' id='plan'>Lab Work</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Protocol'>Protocol</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Protocol' class='listmain' id='plan'>Protocol</a></li>
-
       <ul id='headlistpla2'>
+
       <ul class='plan'>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Modelling'>Modelling</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Modelling' class='listmain' id='plan'>Modelling</a></li>
       </ul>
       </ul>
     </ul>
     </ul>
-
     <ul id='headlistres'>
+
     <ul class='results'>
-
       <li><a href='#'>Under Construction</a></li>
+
       <li><a href='#' class='listmain' id='results'>Under Construction</a></li>
     </ul>  
     </ul>  
-
     <ul id='headlistext'>
+
     <ul class='extra'>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Projects'>Brainstorming</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Projects' class='listmain' id='extra'>Brainstorming</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Journal_Club'>Journal Club</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Journal_Club' class='listmain' id='extra'>Journal Club</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Movie_Night'>Movie Night</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Movie_Night' class='listmain' id='extra'>Movie Night</a></li>
-
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Judging_Criteria'>Judging Criteria</a></li>
+
       <li><a href='http://openwetware.org/wiki/IGEM:Imperial/2010/Judging_Criteria' class='listmain' id='extra'>Judging Criteria</a></li>
     </ul>  
     </ul>  
-
    </div>
 
-
  </div>
 
-
  </div>
 
-
  <div id='side1'>
 
-
  <a href='#' id='lside1'></a>
 
-
  <div id='side2'>
 
-
    <a href='#' id='lside2'></a>
 
-
    <div id='side3'>
 
-
    <a href='#' id='lside3'></a>
 
     </div>
     </div>
   </div>
   </div>
   </div>
   </div>
  </body>
  </body>
-
</html>
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
 
-
<html>
 
</html>
</html>

Current revision

Personal tools