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-20T22:49:35Z —
#2

jan1024188 said:

ehh, PHP is server side, remember everything that has something to do with displaying content is handled by JavaScript (client-side).

Shouldn't that be: everything that has something to do with changing how content is displayed?

dellis87
—
2010-05-25T14:39:51Z —
#3

sbbtina, excellent suggestion. I was able to modify and implement your link perfectly.

Thanks so much.

jan1024188
—
2010-05-20T22:57:36Z —
#4

ScallioXTX said:

Shouldn't that be: everything that has something to do with changing how content is displayed?

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-21T00:14:50Z —
#5

jan1024188 said:

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'; = hidedocument.getElementById(id).style.display = 'block'; = show