+ 1

Help with JS please

Hi, I’m trying to update the text area (called “output1”) of a html document I would like to change it to display message 1, wait an amount of time and then Change the same text area to message 2 etc. Here’s what I have... function textAni1() { output1.innerHTML = ' ... ' } // Message 1 output1.innerHTML = ('Hello ' + name + " and welcome to Trail"); setTimeout(textAni1 , 3000); Message 2 output1.innerHTML = ("Your objective is to walk the trail and survive to tell the tail"); If I comment out one message it will display the other but I can’t get it to display the message then display “...” for a few seconds then display next message. Any help would be greatly appreciated Thanks

24th Oct 2018, 2:35 AM
Gary
Gary - avatar
2 RĂ©ponses
+ 4
@Gary Show the code. Reading like this is annoying.
24th Oct 2018, 2:51 AM
Googel
Googel - avatar
+ 1
as 5667 said..post the code..there is a plus sign where you can add your code here
24th Oct 2018, 4:36 AM
Jason Kennedy