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="1"
scrolldelay="50"
direction="left"
width="200"
height="50"
style="font-family: Verdana; font-size: 8pt"
>
#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.
I'm using this code to create the scroll:
<marquee scrollamount="1"
scrolldelay="50"
direction="left"
width="200"
height="50"
style="font-family: Verdana; font-size: 8pt"
>
#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.