Template:Queens Canada/Header

From 2012.igem.org

(Difference between revisions)
Line 720: Line 720:
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
-
 
+
var startleft =$("#nav").offset().left;
-
 
+
var startleft2= parseInt(startleft) - 20;
$("#nav > li a").hover(function(){
$("#nav > li a").hover(function(){
var left = $(this).offset().left;
var left = $(this).offset().left;
var length = $(this).width();
var length = $(this).width();
-
var newValue = parseInt(length) + 40
+
var newValue = parseInt(length) + 40;
-
     $("#menuselector").animate({ left: left, width: newValue }, {queue: false});
+
     $("#menuselector").animate({ left: left, width: newValue } , {queue: false});
}, function() {
}, function() {
-
     $("#menuselector").animate({ left: "340px", width: "0px" }, {queue: false});
+
     $("#menuselector").animate({ left: startleft2 , width: "0px"}, {queue: false});
});
});
</script>
</script>
</html>
</html>

Revision as of 19:50, 3 July 2012

up
Control