Hi everyone, I'm new to coding so bear with me on this please!
I have 4 javascripts that I want to execute in a timed order.
i.e. on pageload execute myscript1.js
after 30 seconds replace myscript1.js with myscript2.js
after another 30 seconds replace myscript2.js with myscript3.js
again after another 30 seconds replace myscript3.js with myscript4.js
finally reset and replace myscript4.js with myscript1.js and loop round
I have tried a number of permutations of coding that don't work, but it could be I'm doing them wrong! (Highly likely)
I'm looking for other peoples solutions to this problem so I'm not going to embarrass myself by posting my code!
Any help/advice/pointers/examples (preferably with explanations if you don't mind!) would be much appreciated!
I have 4 javascripts that I want to execute in a timed order.
i.e. on pageload execute myscript1.js
after 30 seconds replace myscript1.js with myscript2.js
after another 30 seconds replace myscript2.js with myscript3.js
again after another 30 seconds replace myscript3.js with myscript4.js
finally reset and replace myscript4.js with myscript1.js and loop round
I have tried a number of permutations of coding that don't work, but it could be I'm doing them wrong! (Highly likely)
I'm looking for other peoples solutions to this problem so I'm not going to embarrass myself by posting my code!
Any help/advice/pointers/examples (preferably with explanations if you don't mind!) would be much appreciated!