View Full Version : Div Loading in Java
shnawer
01-13-2008, 12:20 AM
Hi,
I am looking for a script which loads a div after counting 10 seconds. It should show the timer. When the Seconds reach to 10 the timer disappears and my div loads up.
Thanks in advance!
Master_script_maker
01-13-2008, 06:31 PM
Your looking for javascript not java, totally different.
shnawer
01-13-2008, 09:59 PM
Yeah Sorry!
I need in javascript!
Thanx
I polished this but i am not happy with it
<form name="redirect">
<input type="hidden" name="redirect2">
</form>
<div id="down">
seconds</b></font>
</center></div>
<div id="down1"></div>
<script>
<!--
//change below target URL to your own
//change the second to start counting down from
var countdownfrom=99
var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.getElementById("down").innerHTML = "<center><BR>" + "<b> <font color='FF0000' size='4'> Please Wait " + currentsecond + " seconds. Or Register Free to avoid waiting!</font></b>"
}
else
{
document.getElementById("down1").innerHTML = unescape("<center><b><font size='2'> </font></b></center><p>");
document.getElementById("down").innerHTML = '<div align="center"><input type="submit" name="yes" value="Click Here to Download" class="textfield"></div>'
}
setTimeout("countredirect()",1000)
}
countredirect()
//-->
</script>
thanks again
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.