Template:Team:NCTU Formosa/header-human

From 2012.igem.org

(Difference between revisions)
Line 610: Line 610:
<script src="https://2012.igem.org/Template:Team:NCTU_Formosa/swfo?action=raw"></script>
<script src="https://2012.igem.org/Template:Team:NCTU_Formosa/swfo?action=raw"></script>
<script src="https://2012.igem.org/Template:Team:NCTU_Formosa/vbox?action=raw"></script>
<script src="https://2012.igem.org/Template:Team:NCTU_Formosa/vbox?action=raw"></script>
-
<script>
 
-
$(document).ready(function(){
 
-
// hide #back-top first
 
-
$("#back-top").hide();
 
-
$("#submenu").hide();
 
-
// fade in #back-top
 
-
$(function () {
 
-
$(window).scroll(function () {
 
-
if ($(this).scrollTop() > 130) {
 
-
$('#back-top').fade('in');
 
-
$('#submenu').fade('in');
 
-
} else {
 
-
$('#back-top').fade('out');
 
-
$('#submenu').fade('out');
 
-
}
 
-
});
 
-
// scroll body to 0px on click
 
-
$('#back-top a').click(function () {
 
-
$('body,html').animate({
 
-
scrollTop: 0
 
-
}, 800);
 
-
return false;
 
-
});
 
-
});
 
-
});
 
-
</script>
 
</head>
</head>
<body>
<body>

Revision as of 09:11, 21 September 2012