flash - Javascript setInterval change background? -


i want use javascript make element change it's background color red when jumped link further page. after second should change white, give sort of flashing effect. i've managed change red white, keeps on going! can tell me how make flash once?

this javascript code...

 function glow() {         setinterval( function() {          var see = document.getelementbyid("see");         var run = document.getelementbyid("run");         var enter = document.getelementbyid("enter");              see.style.backgroundcolor = 'red';              run.style.backgroundcolor = 'red';             enter.style.backgroundcolor = 'red';             }, 400);          setinterval( function() {         var see = document.getelementbyid("see");         var run = document.getelementbyid("run");         var enter = document.getelementbyid("enter");                  see.style.backgroundcolor = 'white';                  run.style.backgroundcolor = 'white';                 enter.style.backgroundcolor = 'white';                  } , 1000);     } 

change setinterval settimeout once.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -