Answers for "light blink with javascript"

1

light blink with javascript

function goBlink(){
	document.getElementById("Element-Id").setAttribute("style","visibility: visible;");
	
	setTimeout(function(){
	 document.getElementById("Element-Id").setAttribute("style","visibility: hidden;");
	 }
	 , 1700);
     
    setTimeout(function(){
	document.getElementById("Element-Id").setAttribute("style","visibility: visible;");
	}
	 , 2700);

    setTimeout(function(){
	document.getElementById("Element-Id").setAttribute("style","visibility: hidden");
	}
	 , 3700);
    
    setTimeout(function(){
	document.getElementById("Element-Id").setAttribute("style","visibility: visible");
	}
	 , 5000);
     setTimeout(function(){
	document.getElementById("Element-Id").setAttribute("style","visibility: hidden;");
	}
	 , 6000);

}
Posted by: Guest on May-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language