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 type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
 
<script>
<script>
$(document).ready(function(){
$(document).ready(function(){
// hide #back-top first
// hide #back-top first
-
$("#back-top").hide();
+
$("#back-top").fade('out');
-
$("#submenu").hide();
+
$("#submenu").fade('out');
// fade in #back-top
// fade in #back-top
$(function () {
$(function () {
$(window).scroll(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 130) {
if ($(this).scrollTop() > 130) {
-
$('#back-top').fadeIn();
+
$('#back-top').fade('in');
-
$('#submenu').fadeIn();
+
$('#submenu').fade('in');
} else {
} else {
-
$('#back-top').fadeOut();
+
$('#back-top').fade('out');
-
$('#submenu').fadeOut();
+
$('#submenu').fade('out');
}
}
});
});

Revision as of 09:07, 21 September 2012