Introduction :
Hi, Here i will code you how to make text to Blink by using JavaScript. all you need to do is to use the below JavaScript Function, Create a blink tag and keep the text to blink in the <blink></blink> as Shown below.
Aspx and javaScript :
<html>
<head runat="server">
<title>FourthBottle.com</title>
<script type="text/javascript">
time = 900;
element = document.all.tags("blink");
count = 2;
BlinkText();
function
BlinkText() {
if
(count == 1) {
show = "visible";
count = 0;
}
else
{
show = "hidden";
count = 1;
}
for
(i = 0; i < element.length; i++) {
element[i].style.visibility =
show;
}
setTimeout("BlinkText()",
time);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<br />
<br />
<div style="text-align:center">
<blink> This
text will blink with JavaScript </blink>
</div>
</form>
</body>
</html>