User:Benjamin Miller: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:
     <script type="text/javascript">
     <script type="text/javascript">
     $(document).ready(function(){
     $(document).ready(function(){
       $('#side1').mouseover(function() {
       $('#lside1').mouseover(function() {
       $('#side1').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       $('#lside1').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       });
       });
       $('#side1').mouseleave(function() {
       $('#lside1').mouseleave(function() {
       $('#side1').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       $('#lside1').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       });
       });
$('#side2').mouseover(function() {
$('#lside2').mouseover(function() {
       $('#side2').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       $('#lside2').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       });
       });
       $('#side2').mouseleave(function() {
       $('#lside2').mouseleave(function() {
       $('#side2').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       $('#lside2').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       });
       });
$('#side3').mouseover(function() {
$('#lside3').mouseover(function() {
       $('#side3').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       $('#lside3').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       });
       });
       $('#side3').mouseleave(function() {
       $('#lside3').mouseleave(function() {
       $('#side3').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       $('#lside3').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
       });
       });
$('#menu').mouseover(function() {
$('#menu').mouseover(function() {
       $('#headover').stop().animate({backgroundPosition: '0px 0px'}, 1000);
       $('#headover').stop().animate({height:'150px',top:'0px'},200);
       });
       });
       $('#menu').mouseleave(function() {
       $('#menu').mouseleave(function() {
       $('#headover').stop().animate({backgroundPosition: '0px 100px'}, 1000);
       $('#headover').stop().animate({height:'50px',top:'100px'},200);
       });
       });
     });
     });
Line 55: Line 55:
   width:800px;
   width:800px;
   height:150px;
   height:150px;
   position: relative;
   position: absolute;
   top: -150px;
   top: 0px;
   left: 100px;
   left: 100px;
   background-image: url('http://openwetware.org/images/5/54/Imperialigemheadone.jpg'); }
   background-image: url('http://openwetware.org/images/5/54/Imperialigemheadone.jpg'); }
Line 62: Line 62:
#headover {
#headover {
   width: 800px;
   width: 800px;
   height:150px;
   height:50px;
   position: relative;
   position: absolute;
   top: -300px;
   top: 100px;
   left: 100px;
   left: 0px;
   background: url(http://openwetware.org/images/d/d8/Imperialigemheadoverone.png) 0px 100px no-repeat; }
   background: url(http://openwetware.org/images/d/d8/Imperialigemheadoverone.png) 0px 0px no-repeat; }


   #side1 {
   #side1 {
     width: 250px;
     width: 250px;
     height: 100px;
     height: 100px;
    background: url(http://openwetware.org/images/d/df/Imperialigemsideone.jpg) -250px 0px no-repeat;
     position: relative;
     position: relative;
     top: -100px;
     top: 50px;
     left: 650px;}
     left: 650px;}
#side2 {
 
  #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;
     width: 250px;
     height: 100px;
     height: 100px;
     background: url(http://openwetware.org/images/6/66/Imperialigemsidetwo.jpg) -250px 0px no-repeat;
     background: url(http://openwetware.org/images/6/66/Imperialigemsidetwo.jpg) -250px 0px no-repeat;
     position: relative;
     position: absolute;
     top: -50px;
     top: 0px;
     left: 650px;}
     left: 0px;}
#side3 {
 
  #side3 {
    width: 250px;
    height: 100px;
    position: absolute;
    top: 150px;
    left: 0px;}
 
  #lside3 {
     width: 250px;
     width: 250px;
     height: 100px;
     height: 100px;
     background: url(http://openwetware.org/images/e/ea/Imperialigemsidethree.jpg) -250px 0px no-repeat;
     background: url(http://openwetware.org/images/e/ea/Imperialigemsidethree.jpg) -250px 0px no-repeat;
     position: relative;
     position: absolute;
     top: 0px;
     top: 0px;
     left: 650px;}
     left: 0px;}
   </style>
   </style>
  </head>
  </head>
Line 96: Line 119:
   </div>
   </div>
   <div id='menu'>
   <div id='menu'>
  </div>
  <ul>
  <div id='headpic'>
    <li><a href='#'>Home</a></li>
  </div>
    <li><a href='#'>Home</a></li>
  <div id='headover'>
    <li><a href='#'>Home</a></li>
    <li><a href='#'>Home</a></li>
    <li><a href='#'>Home</a></li>
  </ul>
  <div id='headpic'>
    <div id='headover'>
    <h1>test</h1>
    <ul>
      <li><a href='#'>Home</a></li>
      <li><a href='#'>Home</a></li>
      <li><a href='#'>Home</a></li>
      <li><a href='#'>Home</a></li>
      <li><a href='#'>Home</a></li>
    </ul>
    </div>
  </div>
   </div>
   </div>
   <div id='side1'>
   <div id='side1'>
  </div>
  <a href='#' id='lside1'></a>
  <div id='side2'>
  <div id='side2'>
  </div>
    <a href='#' id='lside2'></a>
  <div id='side3'>
    <div id='side3'>
    <a href='#' id='lside3'></a>
    </div>
  </div>
   </div>
   </div>
  </body>
  </body>

Revision as of 04:13, 22 September 2010

<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(){
     $('#lside1').mouseover(function() {
      $('#lside1').stop().animate({backgroundPosition: '0px 0px'}, 1000);
     });
     $('#lside1').mouseleave(function() {
      $('#lside1').stop().animate({backgroundPosition: '-250px 0px'}, 1000);
     });

$('#lside2').mouseover(function() {

      $('#lside2').stop().animate({backgroundPosition: '0px 0px'}, 1000);
     });
     $('#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);
     });

$('#menu').mouseover(function() {

      $('#headover').stop().animate({height:'150px',top:'0px'},200);
     });
     $('#menu').mouseleave(function() {
      $('#headover').stop().animate({height:'50px',top:'100px'},200);
     });
    });

</script>

 <style type="text/css">
  1. title {
  width:900px;
  height:50px;
  position: relative;
  top: 0px;
  left: 0px; 
  font-family: helvetica, arial, sans-serif;
  font-size: 1.5em;
  color: #666666;}

.light {

  color: #aaaaaa;}
  1. menu {
  width:100px;
  height:150px;
  position: relative;
  top: 0px;
  left: 0px;
  background-color: #ea8828}
  1. headpic {
  width:800px;
  height:150px;
  position: absolute;
  top: 0px;
  left: 100px;
  background-image: url('http://openwetware.org/images/5/54/Imperialigemheadone.jpg'); }
  1. headover {
  width: 800px;
  height:50px;
  position: absolute;
  top: 100px;
  left: 0px;
  background: url(http://openwetware.org/images/d/d8/Imperialigemheadoverone.png) 0px 0px no-repeat; }
  #side1 {
   width: 250px;
   height: 100px;
   position: relative;
   top: 50px;
   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;}
 </style>
</head>
<body>
 <div id='title'>
  <p>Imperial College <span class='light'>London</span>    iGEM <span class='light'>2010</span>    C<span class='light'>Syn</span>BI</p>
 </div>
 <div id='menu'>
  <ul>
   <li><a href='#'>Home</a></li>
   <li><a href='#'>Home</a></li>
   <li><a href='#'>Home</a></li>
   <li><a href='#'>Home</a></li>
   <li><a href='#'>Home</a></li>
  </ul>
  <div id='headpic'>
   <div id='headover'>
    <h1>test</h1>
    <ul>
     <li><a href='#'>Home</a></li>
     <li><a href='#'>Home</a></li>
     <li><a href='#'>Home</a></li>
     <li><a href='#'>Home</a></li>
     <li><a href='#'>Home</a></li>
    </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>
</body>

</html>
















<html> </html>