Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

javascript scroll doesn't work in Navigator?

javascript scroll doesn't work in Navigator?



12:48 am on Dec 30, 2001 (gmt 0)

I'm using this

var i = 1;
var speed = 15;

function scrolldown()
var tmp = i;
for (; i<=tmp+716; i++)
i += speed;

function scrollup()
var tmp = i - 716;
if (tmp <= 0) {
tmp = 1;

for (; i>=tmp; i--)
i -= speed;

however, in Navigator, when the button is pressed to activate the scroll, the scroll will happen, however when the page gets to the end of the scroll, it automatically jumps back to where it started?


9:08 am on Dec 30, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Hello lex, and welcome to Webmaster World.

I've never played around with window.scroll(), but that surely is strange behavior you're reporting. I've been staring at your code for a while, and also searching the web for reported problems -- no luck so far.

I'm going to keep at this for you, and in the mean time, maybe someone else can see right through the issue for us both. Hang in there.


10:11 am on Dec 30, 2001 (gmt 0)

Hey lex I have only a minute to respond to this but I would try putting in an if statement that checks if the user is at the bottom of the page. I'm not sure how you would go about this since I don't know exactly what you're trying to do. Hopefully I will come back and check a bit more for you. Welcome btw :)


4:59 pm on Dec 30, 2001 (gmt 0)

thanks for looking into this guys, for the example you can go to:


You'll have to click on v2.0, a pop-up opens and you'll see a move button. In Explorer it works great, just not in navigator.

thanks for any future advice!



2:22 pm on Dec 31, 2001 (gmt 0)

Sorry to report but this didn't work for me on IE 5.5. It scrolled to the side but then scrolled back to the beginning again right away. Sounds like the same problem that you are having in NS. Why not just use an anchor?


2:07 pm on Jan 2, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

same for me... also I noticed that you are using IFRAMEs which won't work in Navigator 4 whatsoever - simple not recognised.



Featured Threads

Hot Threads This Week

Hot Threads This Month