How to build a scrolling textbox in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to build a scrolling textbox in javascript?

Something like the "World Outputter" on this game - http://jhollands.co.uk/spaceplan/ I just want to be able to create a simple scrolling box, where I can add messages upon certain events or timed intervals. Thanks!

29th May 2017, 3:24 PM
Ben West
Ben West - avatar
6 Answers
+ 2
https://code.sololearn.com/Wo28TqJpK08C/?ref=app its in CSS and HTML no js needed
29th May 2017, 3:49 PM
_Retr0/-
_Retr0/- - avatar
+ 1
wait I will show you
29th May 2017, 3:43 PM
_Retr0/-
_Retr0/- - avatar
+ 1
my bad I will still try to help though
29th May 2017, 3:58 PM
_Retr0/-
_Retr0/- - avatar
+ 1
Ok I used the box thing you showed me and have made some progress - https://code.sololearn.com/WnHx6BMl5dZT/#html Do you know how to make it so the box always stays at the bottom so you don't have to scroll down? I just want to emulate the box on the clicker game I showed. Not sure how to do that. This is a step in the right direction though!
29th May 2017, 4:10 PM
Ben West
Ben West - avatar
0
Thanks _Retr0/-, but that's not what I am looking for. I am more looking for an answer on how to add messages to a box on an event or timed interval, instead of just a box already filled with text.
29th May 2017, 3:58 PM
Ben West
Ben West - avatar
0
so on which step r u having trouble at ?
29th May 2017, 3:59 PM
_Retr0/-
_Retr0/- - avatar