PDA

View Full Version : text is written into page every few secounds, and the page is always at the bottom


vkidv
12-16-2003, 09:40 PM
i need a way to make my text come onto a page every few secounds, like 0.5 secounds, and always be at the bottom.

a classic example would be MS DOS, the way the text you type in the line before goes up to make room for the one you just typed in.

how can i make this work in javascript?

ive tried the resize things and scroll by but they did not seem to work for me.

for example:
this is my page, my script needs to write a piece of writing declared in a variable before every few secounds or so, the page below:
-------------------------------
|Hello! ^ more text upwards you have to scroll to to see
|Hello!
|Hello!
|Hello
|Hello!
|Hello! < current bottom
--------------------------------

i also want it to update itself always to be at the bottom, my current script uses a loop, so what could i implement into my loop to make the page always be at the bottom?

Please help.

glenngv
12-17-2003, 02:06 AM
Is this for a chat or something?
Do you use iframe to display the text?

|Hello! ^ more text upwards you have to scroll to to see<br>
|Hello!<br>
|Hello!<br>
|Hello!<br>
|Hello!<br>
<a name="bottom"></a>
|Hello! < current bottom

Then just load the page like:
http://mydomain.com/hello.htm#bottom