0
Guys, I have a little bar on my website
<div style="padding: 30px;" class="bg-light-gray" id="barra- programas"></div>
I want to use JS to make her change text every 10 seconds, on
/sistemas/frases.php
When accesses it comes with a different sentence, every 10 seconds I want js to take a sentence from there and put it in the bar, eliminating the previous message.
How will you find this text in PHP? Load the page already with the text/word array in a variable or use ajax?
– Sergio
I want a setTimeout every 10 seconds, every 10 seconds goes by, then it accesses a text from an Aray and puts the text there.
– Davi Moura
Will this php text be dynamic? will take from the database? if not why not put it straight into js
– Gabriel Rodrigues
No, if you want it can be in an array in the same JS!
– Davi Moura