User:Benjamin Miller: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
background-color: #ea8828} | background-color: #ea8828} | ||
#headpic { | |||
width:800px; | |||
height:150px; | |||
position: relative; | |||
top: -150px; | |||
left: 100px; | |||
background-image: url('http://openwetware.org/images/5/54/Imperialigemheadone.jpg'); } | |||
#side1 { | #side1 { | ||
width: 250px; | width: 250px; | ||
height: 100px; | height: 100px; | ||
background: url(http://openwetware.org/images/d/df/Imperialigemsideone.jpg) -250px 0px no-repeat; | background: url(http://openwetware.org/images/d/df/Imperialigemsideone.jpg) -250px 0px no-repeat; | ||
position: | position: relative; | ||
top: | top: -100px; | ||
left: 650px;} | left: 650px;} | ||
#side2 { | #side2 { | ||
Line 57: | Line 64: | ||
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: | position: relative; | ||
top: | top: -50px; | ||
left: 650px;} | left: 650px;} | ||
#side3 { | #side3 { | ||
Line 64: | Line 71: | ||
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: | position: relative; | ||
top: | top: 0px; | ||
left: 650px;} | left: 650px;} | ||
</style> | </style> | ||
Line 74: | Line 81: | ||
</div> | </div> | ||
<div id='menu'> | <div id='menu'> | ||
</div> | |||
<div id='headpic'> | |||
</div> | </div> | ||
<div id='side1'> | <div id='side1'> |
Revision as of 07:04, 17 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(){ $('#side1').mouseover(function() { $('#side1').stop().animate({backgroundPosition: '0px 0px'}, 1000); }); $('#side1').mouseleave(function() { $('#side1').stop().animate({backgroundPosition: '-250px 0px'}, 1000); });
$('#side2').mouseover(function() {
$('#side2').stop().animate({backgroundPosition: '0px 0px'}, 1000); }); $('#side2').mouseleave(function() { $('#side2').stop().animate({backgroundPosition: '-250px 0px'}, 1000); });
$('#side3').mouseover(function() {
$('#side3').stop().animate({backgroundPosition: '0px 0px'}, 1000); }); $('#side3').mouseleave(function() { $('#side3').stop().animate({backgroundPosition: '-250px 0px'}, 1000); }); });
</script>
<style type="text/css">
- 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;}
- menu {
width:100px; height:150px; position: relative; top: 0px; left: 0px; background-color: #ea8828}
- headpic {
width:800px; height:150px; position: relative; top: -150px; left: 100px; background-image: url('http://openwetware.org/images/5/54/Imperialigemheadone.jpg'); } #side1 { width: 250px; height: 100px; background: url(http://openwetware.org/images/d/df/Imperialigemsideone.jpg) -250px 0px no-repeat; position: relative; top: -100px; left: 650px;}
- side2 {
width: 250px; height: 100px; background: url(http://openwetware.org/images/6/66/Imperialigemsidetwo.jpg) -250px 0px no-repeat; position: relative; top: -50px; left: 650px;}
- side3 {
width: 250px; height: 100px; background: url(http://openwetware.org/images/e/ea/Imperialigemsidethree.jpg) -250px 0px no-repeat; position: relative; top: 0px; left: 650px;} </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'>
</div> <div id='headpic'> </div> <div id='side1'> </div> <div id='side2'> </div> <div id='side3'> </div> </body>
</html>
<html> </html>