Template:SUSTC A 1
From 2012.igem.org
(Difference between revisions)
Line 40: | Line 40: | ||
window.onscroll=function(){getScrollTop()>0?obj.style.display="":obj.style.display="none";} | window.onscroll=function(){getScrollTop()>0?obj.style.display="":obj.style.display="none";} | ||
obj.onclick=function(){ | obj.onclick=function(){ | ||
- | var goTop=setInterval(scrollMove, | + | var goTop=setInterval(scrollMove,5); |
function scrollMove(){ | function scrollMove(){ | ||
setScrollTop(getScrollTop()/1.1); | setScrollTop(getScrollTop()/1.1); |
Revision as of 05:57, 22 September 2012