Blinking a text in IE using javascript

by Rekha 2008-11-11 10:35:12

You all know that <blink> tag in html is used for blinking a text.In Internet Explorer this tag is not working.To make it possible in IE,you have to write a javascript function as follows.


<script type="text/JavaScript">
function doIt(){
document.getElementById('blink').style.visibility =

(document.getElementById('blink').style.visibility == "hidden") ? "visible" : "hidden";
}
function Knipper(){
setInterval('doIt()',1000);
}
window.onload = Knipper;
</script>
<div id='blink'>Example</div>

Tagged in:

1703
like
0
dislike
0
mail
flag

You must LOGIN to add comments