WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Countdown on Sat Mar 27, 2010 1:02 am

Guest


Guest
Does somebody know how to do that? Cool

2 Re: Countdown on Sat Mar 27, 2010 2:39 am

ze_chaofan

avatar
Registered Member
Registered Member
Hello...

Do you mean somthing like this ?
> http://www.hashemian.com/tools/javascript-countdown.htm

http://www.sos-forum.com/

3 Re: Countdown on Sat Mar 27, 2010 3:11 am

Guest


Guest
yea

4 Re: Countdown on Sat Mar 27, 2010 6:46 pm

ze_chaofan

avatar
Registered Member
Registered Member
Do you have problems with the code, or is it ok ?

http://www.sos-forum.com/

5 Re: Countdown on Sun Mar 28, 2010 9:41 pm

Guest


Guest
i have problems.doesnt work.

6 Re: Countdown on Sun Mar 28, 2010 10:32 pm

Unknown Data

avatar
Registered Member
Registered Member
When I count down, I juse this code, it's very simpel and it also looks very nice. The only thing you have to do is delete the red text and write the Month, Date, Year and Time. (:

Notice:
-When you write the month, use only the 3 first letters.
-When you write the date, there have to be 2 numbers in it.
-When you write the year, there have to be 4 numbers in it.
-When you write the time, it have to be NOT with pm and am.

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da">
<head>

<script type="text/javascript">
var now = new Date();
var event = new Date("Month, Date, Year, Clock (example: Apr 01 2010 16:00:00)");
var seconds = (event - now) / 1000;
var minutes = seconds / 60;
var hours = minutes / 60;
var days = hours / 24;
ID=window.setTimeout("update();", 1000);
function update() {
now = new Date();
seconds = (event - now) / 1000;
seconds = Math.round(seconds);
minutes = seconds / 60;
minutes = Math.round(minutes);
hours = minutes / 60;
hours = Math.round(hours);
days = hours / 24;
days = Math.round(days);
document.getElementById('days').value = days;
document.getElementById('hours').value = hours;
document.getElementById('minutes').value = minutes;
document.getElementById('seconds').value = seconds;
ID=window.setTimeout("update();",1000);
}
// Slut -->
</script>

</head>
<body>

<h1>
<p>
<table>
<tr>
<td> Days:</td>
<td> <input type="text" id="days" value="0" style="width:75px;" /><br /></td>
</tr>
<tr>
<td> Hours:</td>
<td> <input type="text" id="hours" value="0" style="width:75px;" /><br /></td>
</tr>
<tr>
<td> Minutes: </td>
<td> <input type="text" id="minutes" value="0" style="width:75px;" /><br /></td>
</tr>
<tr>
<td> Seconds:</td>
<td> <input type="text" id="seconds" value="0" style="width:75px;" /></td>
</tr>
</table>

</p>
</h1>

</body>
</html>

Hope i helped.

http://woops.dk

7 Re: Countdown on Sun Mar 28, 2010 10:36 pm

Guest


Guest
doesnt work

8 Re: Countdown on Sun Mar 28, 2010 10:42 pm

Unknown Data

avatar
Registered Member
Registered Member
Which day, time, month, year do you want to count down to?
And what is the name of the page?

http://woops.dk

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum