Difference between revisions of "Template:Sicau-china navigation"

Line 189: Line 189:
 
H = 0,
 
H = 0,
 
Y = oDiv
 
Y = oDiv
while (Y) {H += Y.offsetTop}
+
while (Y) {H += Y.offsetTop; Y = Y.offsetParent}
 
window.onscroll = function()
 
window.onscroll = function()
 
{
 
{

Revision as of 11:42, 1 November 2017