13th May 2017, 3:34 PM
I L H A M
3 Antworten
+ 7
@IL H A M Good work. However you are using setInterval to set the div display to 'block'. It will get/select the div in every 10 seconds and set the display block. You don't want to do that in a project. This is a small amount of code, so you wont notice anything. But imagine if you have thousand of lines of code and many function selecting a DOM element, you will see unexpected browser behaviour. Use setTimeout instead of setInterval. setTimeout will be called only once after the specified timeout and setInterval will be call mutiple times for specified timout
13th May 2017, 4:00 PM
Apel Mahmod
Apel Mahmod - avatar
+ 5
That is one heck of a long URL for an image. xD
13th May 2017, 4:02 PM
Rrestoring faith
Rrestoring faith - avatar
0
WICKED!
13th May 2017, 3:47 PM
Jadude