| javascript scroll doesn't work in Navigator? javascript scroll doesn't work in Navigator? |
lex

msg:1483799 | 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; window.scroll(i,1) } } function scrollup() { var tmp = i - 716; if (tmp <= 0) { tmp = 1; } for (; i>=tmp; i--) { i -= speed; window.scroll(i,716); } } 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?
|
tedster

msg:1483800 | 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.
|
jsbwm

msg:1483801 | 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 :)
|
lex

msg:1483802 | 4:59 pm on Dec 30, 2001 (gmt 0) | thanks for looking into this guys, for the example you can go to: [lextalkington.com...] 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! Lex
|
jsbwm

msg:1483803 | 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? -jim
|
joshie76

msg:1483804 | 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. J
|
|
|