I’m working to set up a dynamic ‘highlights’ component.
I have 4 divs, with different ids and want one to show up initially, then after 10 seconds, display the second one in the place of the first one, then after 10 more seconds display the third one in place of the second… and so forth and repeat.
Can anyone help me figure this out using PHP?
I’m trying to replicate the “Today’s Highlights” display on the comcast.net homepage.
Sorry for my bad rhetorics, English is just not my native language. So yeah, JS is as far as I know used to handle DOM as well as verify fields, do asynced requests (xml/json/plain) and other stuff. Basically a glue between user interactions and site.
ehh, PHP is server side, remember everything that has something to do with displaying content is handled by JavaScript (client-side).
I don’t know enough JS yet for timers, but here is something that I use to display/hide blocks:
document.getElementById(id).style.display = ‘none’; = hide
document.getElementById(id).style.display = ‘block’; = show