homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

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)

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)

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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved