By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

Delaying text apperance

P: n/a
I wish to be able to display a series of PHP generated messages one
after the other with a 2 second delay between them all. I figured
javascript would be the best way to achieve this. The number of PHP
messages is unkown until the page is generated. Does anyone have a
solution for this.

Yours

Damien
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <6b**************************@posting.google.com >,
st*********@digitalhosts.co.uk enlightened us with...
I wish to be able to display a series of PHP generated messages one
after the other with a 2 second delay between them all. I figured
javascript would be the best way to achieve this. The number of PHP
messages is unkown until the page is generated. Does anyone have a
solution for this.


PHP runs on the server.
Javascript runs on the client.

Have PHP generate the javascript and write its messages to a javascript
array, kind of like
http://www.devpapers.com/article/174

And then the javascript can use the javascript array and show the messages
with setTimeout.

HTH

--
--
~kaeli~
Profanity: the single language in which all programmers are
expert.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.