//configure the below five variables to change the style of the scroller
var scrollerwidth=150
var scrollerheight=105
var scrollerbgcolor='lightyellow'
//set below to '' if you don't wish to use a background image
var scrollerbackground='scrollerback.gif'

I am using a js that scrolls the text the only thing I wanna add to this js is that it connects to the database and reads the content and also the links from the database. Everything works fine but the only place where I couldn't work out is that in this script it gives u the number of messages where in mine it really depends on the site admin how many messages he/she wants to be scrolled. so I believe I need to use something that is like

from 1 to i (where i is the number of messages, this i will be an autonumber in the database which is given to each message that is entered by site admin)