Keeping New List Contents in View | JavaScriptSource

Keeping New List Contents in View

James Robertson Jan 14, 2008

General

This code demonstrates how to keep the content at the bottom of a list always in view, similar to a chat window.


A simple chat-style display

Good afternoon. How are you?

Hello?

Is anybody there?

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: listContents.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(2 comments)

It should be working now. Thanks for pointing it out.

Lee Jan 31, 2008

ERROR: Script keeping-new-list-contents-in-view.html is missing at /www2/jss/cgi-bin/scriptbot2.cgi line 53.

Luigi VISINTIN Jan 25, 2008