The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Count down

View previous topic View next topic Go down

Solved Count down

Post by Bazinga! on March 14th 2013, 7:10 pm

I want to make a counter visible on my forum counting down to an important event. What's the best way to do that?

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 7:16 pm


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Count down

Post by levy on March 14th 2013, 7:17 pm

Code:
 <head>
<script LANGUAGE="JavaScript">
var now = new Date();
var theevent = new Date("Sep 29 2007 00:00:01");
var seconds = (theevent - 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 = (theevent - 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.form1.days.value = days;
document.form1.hours.value = hours;
document.form1.minutes.value = minutes;
document.form1.seconds.value = seconds;
ID=window.setTimeout("update();",1000);
}</script>
</head>
<body>

<p><font face="Arial" size="3">Countdown To January 31, 2000, at 12:00: </font></p>
<form name="form1"><p>Days <input type="text" name="days" value="0" size="3"> Hours
<input type="text" name="hours" value="0" size="4"> Minutes <input type="text" name="minutes" value="0"
size="7"> Seconds <input type="text" name="seconds" value="0" size="7"> </p>
</form>

</body>
</html>

That is the basic ,chage how did you want.

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Count down

Post by Bazinga! on March 14th 2013, 7:41 pm


Thank you, Sanket. I've found a timer like I want but I want to know how to the the 'timeanddate.com' logo off of it?

Code:

<iframe src="http://free.timeanddate.com/countdown/i3jkvlpj/n2109/cf111/cm0/cu4/ct0/cs0/ca0/cr0/ss0/cac000/cpc000/pc66c/tc66c/fs100/szw320/szh135/tatI%20Am%20Alice/tac000/tptTime%20since%20Event%20started%20in/tpc000/matRelease%20Date/mac000/mpc000/iso2013-09-03T00:00:00" frameborder="0" width="320" height="135"></iframe>



candy_fear wrote:
Code:
 <head>
<script LANGUAGE="JavaScript">
var now = new Date();
var theevent = new Date("Sep 29 2007 00:00:01");
var seconds = (theevent - 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 = (theevent - 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.form1.days.value = days;
document.form1.hours.value = hours;
document.form1.minutes.value = minutes;
document.form1.seconds.value = seconds;
ID=window.setTimeout("update();",1000);
}</script>
</head>
<body>

<p><font face="Arial" size="3">Countdown To January 31, 2000, at 12:00: </font></p>
<form name="form1"><p>Days <input type="text" name="days" value="0" size="3"> Hours
<input type="text" name="hours" value="0" size="4"> Minutes <input type="text" name="minutes" value="0"
size="7"> Seconds <input type="text" name="seconds" value="0" size="7"> </p>
</form>

</body>
</html>

That is the basic ,chage how did you want.

Thank you, candy_fear. I may be using this or the one Sanket gave me.

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 7:42 pm

I don't think you would be able to remove the logo or even allowed to remove it.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Count down

Post by Bazinga! on March 14th 2013, 7:47 pm

@Sanket wrote:I don't think you would be able to remove the logo or even allowed to remove it.

Okay, how do I edit the code candy_fear gave me?

The date I want to put in is September 3, 2013 and the reason is the next book in the series is being released on that day. So how can I make a countdown to that day? Can I put a title saying "Release Date" or "Countdown to 'I Am Alice' "?

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 7:51 pm

var theevent = new Date("Sep 29 2007 00:00:01")

Thats the part that you need to change. So just change the date.

Yes, modify the text as you want it.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Count down

Post by Bazinga! on March 14th 2013, 8:08 pm

I don't know what I'm doing wrong but it's not working.

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 8:12 pm

I have not tried it, so can't say much. Where did you add the code?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Count down

Post by Bazinga! on March 14th 2013, 8:21 pm

Wait, I think I have it figured out.

Do you know the number of the color cyan?

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 8:24 pm

#00FFFF
Source Wikipedia. lol

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Count down

Post by Bazinga! on March 14th 2013, 8:38 pm

Oh, Sorry. Embarassed

Anyway, I wasn't able to make the one from candy_fear work but I was able to get the one you gave me work though. So I'm marking this solved. Thanks! Very Happy

Bazinga!
Forumember

Female Posts : 669
Reputation : 29
Language : U. S. English
Location : U. S. A.

http://fairytale.crazy4us.com/

Back to top Go down

Solved Re: Count down

Post by Sanket on March 14th 2013, 8:43 pm

Don't have to be sorry. Wink

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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