|
Example<script type="text/Javascript"> var countTime = 30; // Number of seconds var redirectURL = "http://www.google.com/"; // URL to direct to
countTime = (countTime+1)*1000; function updateCount(){ countTime = countTime-1000; if(document.getElementById("countdownDisplay")) document.getElementById("countdownDisplay").innerHTML = (countTime/1000);
if(countTime <= 0) location.href = redirectURL; else setTimeout("updateCount()",1000); }
updateCount(); </script>
|
|
|
|
|
wow thats pretty awsome  now sure what you'd use that for though :\
|
k
|
|
|
|
Its no necessarily for ProBoards. Its one of those things, like when you login to message boards (for example, wBB), it says you'll be redirected to (blank) page shortly or something, well this could give a count down counter.
|
|
|
|
|
well i didn't think it would be for proboards, though you COULD make a hack though that when you post, it takes you to a page that says "your message has been posted" and then says redirecting in (insert countdown here), and then it takes you to your post  that may not be possible though because of the way proboards works :\
|
k
|
|
|
|
well i didn't think it would be for proboards, though you COULD make a hack though that when you post, it takes you to a page that says "your message has been posted" and then says redirecting in (insert countdown here), and then it takes you to your post  that may not be possible though because of the way proboards works :\ Proboards doesn't allow redirects
|
|
|
|
well i didn't think it would be for proboards, though you COULD make a hack though that when you post, it takes you to a page that says "your message has been posted" and then says redirecting in (insert countdown here), and then it takes you to your post  that may not be possible though because of the way proboards works :\ Proboards doesn't allow redirects Wrong. Craig himself has given out a code similar to the following. if(confirm("Would you like to check your PMs?")) location.href = "index.cgi?action=pm"; But when messing with redirects, its best to get ToS confirmation.
Last Edit: May 1, 2006 3:16:13 GMT by Chris
|
|
|
|
|
i was just saying that cuz i've seen message boards that are like that.
|
k
|
|
|
|
phpBB is one of them I believe actually. Or, at least a modified version of a phpBB that I go to.
|
|
|
|
|
yes i think i saw it on a phpbb. i saw it on a place called FF Aliance.
|
k
|
|
|