Team:Tianjin/header
From 2012.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
$(this).stop().animate({opacity: 0}, "slow"); | $(this).stop().animate({opacity: 0}, "slow"); | ||
}); | }); | ||
+ | $("#secondpane p.menu_head").mouseover(function() | ||
+ | { | ||
+ | $(this).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow"); | ||
+ | $(this).siblings(); | ||
+ | }); | ||
}); | }); | ||
+ | </script> | ||
+ | <script type="text/javascript"> | ||
+ | function getScrollTop() { | ||
+ | var scrollPos; | ||
+ | if (window.pageYOffset) { | ||
+ | scrollPos = window.pageYOffset; | ||
+ | } | ||
+ | else if (document.compatMode && document.compatMode != 'BackCompat') { | ||
+ | scrollPos = document.documentElement.scrollTop; | ||
+ | } | ||
+ | else if (document.body) { | ||
+ | scrollPos = document.body.scrollTop; | ||
+ | } | ||
+ | if(scrollPos < 275){ | ||
+ | document.getElementById("secondpane").className=" "; | ||
+ | } | ||
+ | else{ | ||
+ | document.getElementById("secondpane").className="menu_list"; | ||
+ | } | ||
+ | } | ||
+ | window.onscroll=getScrollTop; | ||
</script> | </script> | ||
Revision as of 09:33, 23 September 2012
[[file:{{{image}}}|link=]]