/    Sign up×
Community /Pin to ProfileBookmark

timed link show

i have this countdown timer;

[QUOTE]

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<B>Building Please Wait</B>:
<script type=”text/javascript”>
var g_iCount =6;
var timeoutID;
function startCountdown(){
if(g_iCount > 0){
g_iCount = g_iCount – 1;
document.getElementById(‘numberCountdown’).firstChild.data = ‘:’ + g_iCount;
}
else {
clearTimeout(timeoutID);
}
}
window.onload=function(){timeoutID=setInterval(‘startCountdown()’,1000);}
</script>

<style type=”text/css”>
#numberCountdown {
font:1.5em ‘Digital Readout Upright’, monospace;
color:black;
background:white;
}
</style>

<div align=”left” id=”numberCountdown”>&nbsp;</div>

[/QUOTE]

and this link

[QUOTE]

<a href=”ANOTHERPAGE.HTML” target=”_self” onclick=”appearIt(‘myHiddenSpan19’);”>GO somewhere</a>

[/QUOTE]

could anyone help me so when the timer reaches 0 the link appears or is there a easier script you have?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Angry_Black_ManAug 20.2007 — what have you tried so far?
Copy linkTweet thisAlerts:
@Mr_JAug 20.2007 — Try this

[CODE]<script type="text/javascript">
var g_iCount = 6;
var timeoutID;

function startCountdown(){

if(g_iCount > 0){
g_iCount--
}
else {
clearTimeout(timeoutID);
}

document.getElementById('numberCountdown').firstChild.data = ':' + g_iCount;

if(g_iCount==0){
document.getElementById("mylink").style.display="block"
}

}

window.onload=function(){timeoutID=setInterval('startCountdown()',1000);}

</script>

<style type="text/css">
#numberCountdown {
font:1.5em 'Digital Readout Upright', monospace;
color:black;
background:white;
}
</style>

<div align="left" id="numberCountdown">&nbsp;</div>


<a id="mylink" href="ANOTHERPAGE.HTML" target="_self"onclick="appearIt('myHiddenSpan19')" style="display:none">GO somewhere</a>

[/CODE]
Copy linkTweet thisAlerts:
@mitchellauthorAug 20.2007 — thanks so much, for your help
×

Success!

Help @mitchell spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...