<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Blinking text using Javascript</title>
<script type="text/javascript">
function blinkIt() {
if (!document.all) return;
else {
for(i=0;i<document.all.tags('blink').length;i++){
s=document.all.tags('blink')[i];
s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
}
}
}
</script>
<style type="text/css">
.blink
{
color: Red;
font-weight: bold;
font-family: Verdana, Tahoma;
font-size: 14px;
}
</style>
</head>
<body onload="setInterval('blinkIt()',500)">
<form id="form1" runat="server">
<div>
<blink class="blink">Am i blinking ???</blink>
</div>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Blinking text using Javascript</title>
<script type="text/javascript">
function blinkIt() {
if (!document.all) return;
else {
for(i=0;i<document.all.tags('blink').length;i++){
s=document.all.tags('blink')[i];
s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
}
}
}
</script>
<style type="text/css">
.blink
{
color: Red;
font-weight: bold;
font-family: Verdana, Tahoma;
font-size: 14px;
}
</style>
</head>
<body onload="setInterval('blinkIt()',500)">
<form id="form1" runat="server">
<div>
<blink class="blink">Am i blinking ???</blink>
</div>
</form>
</body>
</html>
No comments:
Post a Comment