Created
March 3, 2016 10:46
-
-
Save alancolyer/ceaac813fc8057c30bd6 to your computer and use it in GitHub Desktop.
Felt sad that <blink> was deprecated? Cry no more!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function(){ | |
var elems = document.getElementsByTagName("blink"); | |
for (var i=0; i<elems.length; i++) | |
{ | |
if (elems[i].style.visibility=="visible") | |
{ | |
elems[i].style.visibility="hidden"; | |
} | |
else | |
{ | |
elems[i].style.visibility="visible"; | |
} | |
} | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment