开发者

HTML - After page load, page jumps down

This problem has been bugging me for awhile. For some reason, after the page is finished or near-finished loading开发者_StackOverflow社区, the page jumps down, about half-way.

What I want to happen, and what I expect, is that pages remain at the top post-load.

Is there something I've done that could cause this?

For me it happens in Firefox 3.*

Example 1

Example 2 - Empty Olay bottles


Some javascript code is causing this: when I turn off javascript the page stays at the top. Since there are like a gazillion lines of javascript code, I'm gonna leave the search of the code causing this to you. I would suggest to look for 'scrollTop' or something.


On example 2, Ive had downloaded your site and the error appears to be in your common.js file, I think its the height function. (I removed it and it worked fine) maybe have a look into that?

Line 50-64


This fault of page jumping down half a page might be due to Greasemonkey. By a process of elimination, found out which add-on was causing this jump. So disabled Greasemonkey to stop page jumping half way down, or use Greasemonkey and live with it. Both Greasemonkey and Firefox latest versions. On my Firefox, autofocus did not fix page scroll part way down. Even after restart.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜