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> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
// hide #back-top first | // hide #back-top first | ||
- | $("#back-top"). | + | $("#back-top").fade('out'); |
- | $("#submenu"). | + | $("#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'). | + | $('#back-top').fade('in'); |
- | $('#submenu'). | + | $('#submenu').fade('in'); |
} else { | } else { | ||
- | $('#back-top'). | + | $('#back-top').fade('out'); |
- | $('#submenu'). | + | $('#submenu').fade('out'); |
} | } | ||
}); | }); |
Revision as of 09:07, 21 September 2012
NCTU_Formosa