Delaying text apperance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Damien

    Delaying text apperance

    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
  • kaeli

    #2
    Re: Delaying text apperance

    In article <6b012499.04091 31356.1932af35@ posting.google. com>,
    stardrifter@dig italhosts.co.uk enlightened us with...[color=blue]
    > 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.
    >[/color]

    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


    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.



    Comment

    Working...