lxndr
08-24-2006, 11:00 AM
1) Script Title: Scrollable Content II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm
3) Describe problem:
I have this script working and am using it to scroll through messages in a Shoutbox php program I am writing. The Shoutbox consists of an html table with a series of comments from different users. These are read from an SQL table and output as html table rows. What I would like to be able to do though is automatically scroll to the most recent entry, i.e. suppose the following is output:
<table>
<tr><td>Comment 1</td></tr>
<tr><td>Comment 2</td></tr>
<tr><td>Comment 3</td></tr>
<tr><td>Comment 4</td></tr>
<tr><td>Comment 5</td></tr>
</table>
etc.
If we imagine the table rows with Comment 4 and Comment 5 are not visible until the user has scrolled down, I would like the script to automatically go to the last table row, ie Comment 5. Is there any way I could modify the script to do this?
Thanks for any help.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm
3) Describe problem:
I have this script working and am using it to scroll through messages in a Shoutbox php program I am writing. The Shoutbox consists of an html table with a series of comments from different users. These are read from an SQL table and output as html table rows. What I would like to be able to do though is automatically scroll to the most recent entry, i.e. suppose the following is output:
<table>
<tr><td>Comment 1</td></tr>
<tr><td>Comment 2</td></tr>
<tr><td>Comment 3</td></tr>
<tr><td>Comment 4</td></tr>
<tr><td>Comment 5</td></tr>
</table>
etc.
If we imagine the table rows with Comment 4 and Comment 5 are not visible until the user has scrolled down, I would like the script to automatically go to the last table row, ie Comment 5. Is there any way I could modify the script to do this?
Thanks for any help.