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.....
oyeee ye to sath me mil ke banaya tha
ReplyDelete