Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie needs help: Countdown

Status
Not open for further replies.

exige

Programmer
Aug 11, 2008
3
First off, I am a newbie, and just started basic HTML / Javascript coding.

I got this Coundtown timer off the internet, and I was wondering if it is possible to make the countdown give a link (i.e. my websites homepage) when it finishes, if so could you please show / tell me what to do ???

Countdown timer from
Countdown Script / HTML code:

<object type="application/x-shockwave-flash" data=" DATE&size=big&mo=08&da=25&yr=2008" width="313" height="100"><param name="movie" value=" DATE&size=big&mo=08&da=25&yr=2008" /><param name="bgcolor" value="#000000" /></object><img src=" alt="" style="display: none;" height="1" width="1"

Any help would be much obliged :) .
P.S. If someone could also tell me how to delete the coding, that enables the writing (i.e. UNTIL OPENING DATE, see here for example, ), that would very helpful and much obliged.
 
That is a flash file, not Javascript. Google for 'javascript countdown' and you will get something that you can control. There are loads, including
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Could you tell me how to make the "Its is finally here" text at the end of the countdown, into a link to my website (for example, normally I would put
<a href=" to make the text into a link ,but when I tried it wouldnt work).

Javascript Countdown:

<script language="JavaScript">
TargetDate = "12/31/2020 5:00 AM";
BackColor = "black";
ForeColor = "red";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
FinishMessage = "It is finally here!";
</script>
<script language="JavaScript" src="
Thanks :)
 
The function CountBack(secs) uses
Code:
document.getElementById("cntdwn").innerHTML = FinishMessage;
to display the message when the counter reaches sero. Just replace it with a
Code:
window.open("[URL unfurl="true"]http://exige117.v-hosting.co.uk/Countdown.html");[/URL]


___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top