light blink with javascript

Solutions on MaxInterview for light blink with javascript by the best coders in the world

showing results for - "light blink with javascript"
Silvia
03 Jun 2018
1function goBlink(){
2	document.getElementById("Element-Id").setAttribute("style","visibility: visible;");
3	
4	setTimeout(function(){
5	 document.getElementById("Element-Id").setAttribute("style","visibility: hidden;");
6	 }
7	 , 1700);
8     
9    setTimeout(function(){
10	document.getElementById("Element-Id").setAttribute("style","visibility: visible;");
11	}
12	 , 2700);
13
14    setTimeout(function(){
15	document.getElementById("Element-Id").setAttribute("style","visibility: hidden");
16	}
17	 , 3700);
18    
19    setTimeout(function(){
20	document.getElementById("Element-Id").setAttribute("style","visibility: visible");
21	}
22	 , 5000);
23     setTimeout(function(){
24	document.getElementById("Element-Id").setAttribute("style","visibility: hidden;");
25	}
26	 , 6000);
27
28}