tags:

views:

64

answers:

1

here the issue .... I have a php programme to read and display the contents (4 text fields) of a MYSQL database, but these records are displayed sequentially down the page. What I hope to do is read a record and display the text, have a little timer to pause and then display the next record in the same location on the page. Like a slide show of text.

If I use the CSS position command the text is positioned in the same place but it just writes right over the previous record. Is there a way to clear/delete content at a specif position on a page .... or some other way of doing this?

A: 

You want the display properties; specifically, display:none and display:block. Start with the first row having display:block and the rest having display:none, then when the timer advances, switch the first to display:none and the second to display:block.

You probably want to handle this purely through a class. Set all of the rows to display:none in CSS, then have a single row at a time use an "active" class or something similar which has display:block.

Xanthir