Skip to content

Instantly share code, notes, and snippets.

@brianarn
Created May 10, 2010 17:57
Show Gist options
  • Save brianarn/396319 to your computer and use it in GitHub Desktop.
Save brianarn/396319 to your computer and use it in GitHub Desktop.
Bringin' blinkin' back
(function () {
var blinktags = document.getElementsByTagName('blink'), len = blinktags.length, vis = 'hidden', i;
if (len > 0) {
setInterval(function () {
for (i = 0; i < len; i++) blinktags[i].style.visibility = vis;
vis = vis === 'visible' ? 'hidden' : 'visible';
}, 500);
}
})();
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<blink><h1>I AM BLINKING!</h1></blink>
<script src="blinkify.js"></script>
</body>
</html>​
@miketaylr
Copy link

You can fake <blink> with <marquee> too, if you're crazy enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment