How to blink a text on IE browser.???

Ranjeet_8
Posted by Ranjeet_8 under JavaScript category on | Points: 40 | Views : 7254
How blink a text on IE Browser.

//Java Script
<script type="text/javascript">
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i = 0; i < blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}
function startBlink() {
if (document.all) setInterval("doBlink()", 500)
}
window.onload = startBlink;
</script>


//CSS
    <style type="text/css">
blink
{
-webkit-animation-name: blink;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
-webkit-animation-duration: 1s;
}
</style>


//HTML
 <span style="color: Red; font-size: 11px; font-family: Times New Roman;">
<blink>New!</blink>
</span>

Comments or Responses

Login to post response