Search
Submit & Win
Submit and win
Cash Prizes !
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Sat, 20-Dec-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
10880
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

Blink a text using Javascript

Ddd
Posted by Ddd under JavaScript on 1/29/2011 1:02:41 AM | Points: 40 | Views : 2760 | Status : [Member]

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>


<!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></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 id="hh">welcome</h2>
</div>
</form>
</body>
</html>
<script type="text/javascript">
var k = 0;
function blinker() {
k++;
var a = document.getElementById("hh");
if (k % 2 == 0) {

a.style.visibility = "hidden";
}
else {

a.style.visibility = "visible";
}
//reset the value of k so that it does not keep
// on incrementing
if (k == 30) {
k = 0;

}
window.setTimeout("blinker()", 500);
}
blinker();

</script>


dinesh k.
Share this to:

Bookmark It

Comments or Responses


Login to post response