Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> </head> <body> <script type="text/javascript"> function blink() { var blinks = document.getElementsByTagName('blink'); for (var i = blinks.length - 1; i >= 0; i--) { var s = blinks[i]; s.style.visibility = (s.style.visibility === 'visible') ? 'hidden' : 'visible'; } window.setTimeout(blink, 1000); } if (document.addEventListener) document.addEventListener("DOMContentLoaded", blink, false); else if (window.addEventListener) window.addEventListener("load", blink, false); else if (window.attachEvent) window.attachEvent("onload", blink); else window.onload = blink; </script> <blink style="color: #1c87c9;">Effet clignotant avec JavaScript</blink> </body> </html>