Template:Team:SCUT/Model/mainhead

From 2014.igem.org

(Difference between revisions)
Line 49: Line 49:
<script type="text/javascript">
<script type="text/javascript">
function scroll(element){
function scroll(element){
-
        var eletop1 = element.offset().top;
+
var eletop_1 = element.offset().top;
-
        $("body,html").animate({scrollTop:eletop1},600);
+
$("body,html").animate({scrollTop:eletop_1},600);
}
}
-
function scroll_a(element){
+
function scroll_a(){
-
        var element = $("#cite");
+
var element = $("#cite");
-
        scroll(element);
+
scroll(element);
}
}
</script>
</script>
 +
 +
</body>
</body>
</html>
</html>

Revision as of 02:46, 13 October 2014