0

Which programming language will I use to make a photo appear for one minute then replace by another photo?

Javascript

22nd May 2020, 7:24 AM
Iwasam Enya
Iwasam Enya - avatar
3 ответов
+ 1
Did you just answer your own question?
22nd May 2020, 7:37 AM
HonFu
HonFu - avatar
+ 1
HonFu no. I can't find the code on javascript
22nd May 2020, 7:37 AM
Iwasam Enya
Iwasam Enya - avatar
0
Okay, then it is just misleading, because you ask for the 'programming language', although you seem to know already that it has to be Javascript. Anyway, you're right, I think. You would have to get the element into your JS, for example by id, and change the src attribute's content. Just put another link there, right? If you now do this in an automatized fashion, switching one link against another, you should be able to get your result. I think this is what you need: https://www.w3schools.com/jsref/met_win_setinterval.asp I haven't tried it myself, but I hope it'll work for you.
22nd May 2020, 8:10 AM
HonFu
HonFu - avatar