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

Change Css Class of li in ul onclick

Find missing sequence number. Get the numbers where sequence is missing.

Get Query String Values With Javascript