Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 36: Line 36:
 
       var pageHeight = docEle.offsetHeight, windowHeight = docEle.clientHeight
 
       var pageHeight = docEle.offsetHeight, windowHeight = docEle.clientHeight
  
       if ((pageHeight + 40 - top) > windowHeight) setTimeout("scrollBy(0, -20)", 10);
+
       if ((pageHeight - top) > windowHeight) setTimeout("scrollBy(0, -20)", 10);
 
     }
 
     }
 
   )
 
   )

Revision as of 09:05, 17 August 2015