Blink Text in a Web Page
The <BLINK> works only on Netscape browser, IE doesn't support it.
One workaround is to use timer.
<DIV class“howtocode”><code><body onload
“setInterval('blinkIt()',500)”>
<script type“text/javascript”>
function blinkIt() {
if (!document.all) return;
else {
for(i
0;i<document.all.tags('blink').length;i++){
s''document.all.tags('blink')[i]; s.style.visibility''(s.style.visibility'''''visible')?'hidden':'visible'; }
}
}
</script>
<blink>Am i blinking ?</blink>
</code></DIV><script type“text/javascript”>
setInterval('blinkIt()',500);
function blinkIt(){
if(!document.all)return;
else{for(i
0;i<document.all.tags('blink').length;i++){
sdocument.all.tags('blink')[i];
s.style.visibility
(s.style.visibility'visible')?'hidden':'visible';}}}
</script>
<p>Here how it looks : <blink>Am i blinking ?</blink> <p>You can achive the same effect with some simple CSS but not all browsers will render the blinking (N7 ok, IE5 no) :
<DIV class“howtocode”><code><style>
.super {text-decoration: blink; text-align: center}
</style>
<span class
“super”>Am i blinking ?</span>
</code>
</DIV>
<p>Here how it looks :
<style>
.super {
text-decoration: blink; text-align: center;
} </style> <span class''“super”>Am i blinking ?</span>
– Main.FredPettis - 16 May 2008