View Full Version : how do i ...

12-22-2007, 12:22 PM
i am making a website and i want pieces of information on the page to appear at different times. for example, when a user clicks on a page, 3 pieces of information appear one after the other and finally they all remain on the page ... does anyone know how to do this

hope that makes sense thanks,

Philip M
12-22-2007, 01:26 PM
I expect that someone does indeed know how to do this. :rolleyes:

<script type = "text/javascript">

setTimeout ("doit2()",2000); // two seconds delay

function doit2() {
setTimeout ("doit3()",2000);
document.getElementById('fred2').innerHTML='Second line of message';

function doit3() {
setTimeout ("doit4()",2000);
document.getElementById('fred3').innerHTML='Third line of message';

function doit4() {
document.getElementById('fred4').innerHTML='Fourth line of message';


<span id=fred1 >Initial Value if anything</span><br>
<span id=fred2 ></span><br>
<span id=fred3 ></span><br>
<span id=fred4 ></span><br>

Do please read the posting guidelines at http://www.codingforums.com/postguide.htm regarding silly thread titles. The thread title is supposed to help people who have a similar problem in future. Yours is useless for this purpose.

Also cross-posted, contrary to the rules:-

1.2) Do not crosspost- CodingForums.com is divided into various categories. When initiating a thread, always locate the most appropriate category, and post your question only ONCE, in that category. Do not post the same question in multiple categories.

It is your responsibility to die() if necessary….. - PHP Manual

12-22-2007, 04:10 PM
sorry im new to this, i posted it twice because someone told me its most likely to be javascript which i didnt realise at the time, so i moved it somewhere where i thought it would be more relevant

thanks for your help, i will try it out