dellis87 — 2010-05-20T16:04:13-04:00 — #1
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.
Thanks in advance, I really appreciate the help.
scallioxtx — 2010-05-20T18:49:35-04:00 — #2
Shouldn't that be: everything that has something to do with changing how content is displayed?
dellis87 — 2010-05-25T10:39:51-04:00 — #3
sbbtina, excellent suggestion. I was able to modify and implement your link perfectly.
Thanks so much.
jan1024188 — 2010-05-20T18:57:36-04:00 — #4
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.
scallioxtx — 2010-05-20T20:14:50-04:00 — #5
Exactly! Just wanted to verify
sbbtina — 2010-05-20T16:17:51-04:00 — #6
dellis, I think you cannot create this using PHP.
jan1024188 — 2010-05-20T16:24:33-04:00 — #7
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
id = your block id variable