Well, that certainly looks much nicer! OK, you have two choices. #1 is what I think you say you want, is to stop at the end of one scroll. To do that , change this line:
Code:
setInterval("scrollwindow()",10)
to:
Code:
scrollInt=setInterval("scrollwindow()",10)
and these lines:
Code:
else{
currentpos=0
window.scroll(currentpos,0)
}
to:
Code:
else
clearInterval(scrollInt)
The other possibility would be to have it stop and return to the beginning. For that, the first line change is still used but the second change needs to end up looking like so:
Code:
else{
clearInterval(scrollInt)
currentpos=0
window.scroll(currentpos,0)
}
Bookmarks