Test your technical skills online, appear in Virtual Interview and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Make friends on DotNetFunda.com and expand your network!
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Codes Author
Wed, 23-Apr-2014 Authors
Zondray
40
All Time Authors
Satyapriyanayak
11600
Jayakumars
8120
Niladri.biswas
6000

Latest members | More ...


(Statistics delayed by 5 minutes)

Blink a text using Javascript

Ddd
Posted by Ddd under JavaScript on 1/29/2011 1:02:41 AM | Points: 40 | Views : 2403 | 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.
Found interesting? Add this to:



Comments or Responses


Login to post response.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.