Javascript Blinking Text inside Textbox


This javascript shows how you could blink text inside the textbox.
<script language="javascript" type="text/javascript">
function text_blink()
{
if(document.getElementById("blink_me").style.color == "black")
{
document.getElementById("blink_me").style.color = "white";
}
else
{
document.getElementById("blink_me").style.color = "black";
}

setTimeout("text_blink()", 500);
}

</script>
Place the script inside head tags i.e. <head> script here </head>
and in body
<body onload="text_blink()">
Blinking Text in a Textbox : <input type="text" id="blink_me" value="Hello Blink Blink.." />
</body>

Thats All.....

Comments

Post a Comment

Popular posts from this blog

Get Query String Values With Javascript

Change Css Class of li in ul onclick

Change Text Color with Javascript