Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to jQuery Countdown Timer Script Example in ASP.NET
WhatsApp
Pintoo Yadav
Sep 12
2015
5.4
k
0
2
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
Up Next
How to jQuery Countdown Timer Script Example in ASP.NET