Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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>



Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
wow thats pretty awsome :P

now sure what you'd use that for though :\
k

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
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. :P

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
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 :P

that may not be possible though because of the way proboards works :\
k

Nate

Nate Avatar

**
Official Member

85


July 2007
fredy said:
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 :P

that may not be possible though because of the way proboards works :\
Proboards doesn't allow redirects

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
nate said:
fredy said:
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 :P

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

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
i was just saying that cuz i've seen message boards that are like that.
k

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
phpBB is one of them I believe actually. Or, at least a modified version of a phpBB that I go to.

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
yes i think i saw it on a phpbb. i saw it on a place called FF Aliance.
k

newBookmarkLockedFalling