Template:Team:SCUT/Model/mainhead

From 2014.igem.org

(Difference between revisions)
Line 12: Line 12:
</head>
</head>
<body>
<body>
 +
<script type="text/javascript">
 +
function scroll(element){
 +
var eletop = element.offset().top;
 +
$("body,html").animate({scrollTop:eletop},600);
 +
}
 +
function scroll_1(){
 +
var element = $("#label_1");
 +
scroll(element);
 +
}
 +
function scroll_2(){
 +
var element = $("#label_2");
 +
scroll(element);
 +
}
 +
function scroll_3(){
 +
var element = $("#label_3");
 +
scroll(element);
 +
}
 +
function scroll_4(){
 +
        var element = $("#label_4");
 +
        scroll(element);
 +
}
 +
</script>
</body>
</body>
</html>
</html>

Revision as of 10:23, 7 October 2014