Template:Queens Canada/Header

From 2012.igem.org

(Difference between revisions)
Line 14: Line 14:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
-
<script type="text/javascript" src="http://2012.igem.org/Team:Queens_Canada/Javascript/Smoothscroll?action=raw&ctype=text/js"></script>
 
-
<script type="text/javascript" src="http://dl.dropbox.com/u/46807995/init%20-%20Copy.js"> </script>
 
 +
 +
<script type="text/javascript" src="http://2012.igem.org/Team:Queens_Canada/Javascript/Smoothscroll?action=raw&ctype=text/js"></script>
<style type="text/css">
<style type="text/css">
Line 645: Line 645:
);
);
</script>
</script>
-
<script type="text/javascript">
 
-
var startleft =$("#nav").offset().left;
 
-
var startleft2= parseInt(startleft) - 20;
 
-
$(".menuoption").hover(function(){
 
-
var left = $(this).offset().left;
 
-
var length = $(this).width();
 
-
var newValue = parseInt(length);
 
-
 
-
    $("#menuselector").animate({ left: left, width: newValue } , {queue: false});
 
-
}, function() {
 
-
    $("#menuselector").animate({ left: startleft2 , width: "0px"}, {queue: false});
 
-
});
 
-
</script>
 
<script type="text/javascript">  
<script type="text/javascript">  
     var scrolltimer;
     var scrolltimer;

Revision as of 21:33, 19 July 2012

Control