Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a scrolling text banner from database.

Status
Not open for further replies.

siituser

Programmer
Joined
Sep 30, 2002
Messages
67
Location
CA
I'm trying to create a scrolling text-based banner that will grab info from the database automatically.

I'm using this code to create the scroll:
<marquee scrollamount=&quot;1&quot;
scrolldelay=&quot;50&quot;
direction=&quot;left&quot;
width=&quot;200&quot;
height=&quot;50&quot;
style=&quot;font-family: Verdana; font-size: 8pt&quot;
>
#new_data_display#
</marquee>

One option I though of was just to grab data and join them into one large string and roll through it.

Another option would be to go the database and grab x number of items randomly and put those into a structure and loop through them with some javascript that will control the time (I've seen this down with images)

Is there any cleaner way of doing this? It would be wonderful to keep an open connection to the database and just let the data flow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top