+ 3
ăDont open this codeă#Nothing!!
3 Answers
+ 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
+ 5
That is one heck of a long URL for an image. xD
0
WICKED!