TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to jQuery Countdown Timer Script Example in ASP.NET
Pintoo Yadav
Sep 12
2015
Code
5.2
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Basic Usage
$(
'#counter'
).countdown({
startTime:
"01:12:32:55"
});
Complete Usage
$(
'#counter'
).countdown({
stepTime: 60,
format:
'hh:mm:ss'
,
startTime:
"12:32:55"
,
digitImages: 6,
digitWidth: 53,
digitHeight: 77,
timerEnd: function() {
alert(
'end!!'
);
},
image:
"digits.png"
});
Check
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
xml:lang
=
"en"
lang
=
"en"
>
<
head
>
<
meta
http-equiv
=
"content-type"
content
=
"text/html; charset=UTF-8"
/>
<
title
>
jQuery Countdown plugin Example in asp.net
</
title
>
<
script
type
=
"text/javascript"
src
=
"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
>
</
script
>
<
script
src
=
"jquery.countdown.js"
type
=
"text/javascript"
>
</
script
>
<
script
type
=
"text/javascript"
>
$(function() {
$('#counter').countdown({
image: 'digits.png',
startTime: '01:12:12:00'
});
$('#counter_2').countdown({
startTime: '00:10',
format: 'mm:ss',
digitImages: 6,
digitWidth: 53,
digitHeight: 77,
timerEnd: function() { alert('end!'); },
image: 'digits.png'
});
});
</
script
>
<
style
type
=
"text/css"
>
br { clear: both; }
.cntSeparator {
font-size: 54px;
margin: 10px 7px;
color: #000;
}
.desc { margin: 7px 3px; }
.desc div {
float: left;
font-family: Arial;
width: 70px;
margin-right: 65px;
font-size: 13px;
font-weight: bold;
color: #000;
}
</
style
>
</
head
>
<
body
>
<
div
id
=
"counter"
>
</
div
>
<
div
class
=
"desc"
>
<
div
>
Days
</
div
>
<
div
>
Hours
</
div
>
<
div
>
Minutes
</
div
>
<
div
>
Seconds
</
div
>
</
div
>
<
br
/>
<
br
/>
<
br
/>
<
div
id
=
"counter_2"
>
</
div
>
<
div
class
=
"desc"
>
<
div
>
Minutes
</
div
>
<
div
>
Seconds
</
div
>
</
div
>
</
body
>
</
html
>
jQuery
countdown timer script
asp.net