I’m having trouble implementing a text area scroller: “button_scroller.html” shows the original code working as it should – when you get to the bottom of the list the scrolling automatically stops.
“scroll_text.html” is my working version. Click on a menu item to see its corresponding list. This one will keep scrolling indefinitely – why? Also, I’ve been trying to implement a necessary addition: when you click on a menu item the scrolling text area should return to the top of the text area, but adding –
[code]document.getElementById(id).style.scrollTop = 0;
to the javascript isn’t working. How should this be implemented? Thanks for any help.
[upl-file uuid=35c461dc-2550-4844-bbc6-3c0f8a9ad626 size=8kB]scroll_text.zip