![]() |
make terms page submit button count down
I am wanting to know if there is a way to make the submit button at the bottom of the terms that must be read when registering to countdown from a number that I choose.
Example at this site: http://www.woltlab.de/en/forum/register.php Their accept button counts down from 9 and you can't click the button until it reaches 0. Anyone know. Any help much appreciated. Thanks Myth |
taken right from the source of that page:
<script type="text/javascript"> <!-- var secs = 10; var wait = secs * 1000; document.sform.submitbtn.disabled=true; for(i=1;i<=secs;i++) { window.setTimeout("update(" + i + ")", i * 1000); } window.setTimeout("timer()", wait); function update(num) { if(num == (wait/1000)) { document.sform.submitbtn.value = "Accept"; } else { printnr = (wait/1000)-num; document.sform.submitbtn.value = "Accept (" + printnr + ")"; } } function timer() { document.sform.submitbtn.disabled=false; } //--> </script> of course, the form would be named sform ( <form name="sform" .. > ) and the button submitbtn ( <input type="submit" name="submitbtn" .. > ) |
At the end, what do you mean by that stuff? Where does it all go?
Thanks for giving me that, I didn't realize it was staring me in the face. |
If I'm not mistaken, it should go in the registration section your html templates.
|
I got it, I put it in the registration_rules template and it works perfect. Thanks for the help Mink and Rake.
|
can someone please post exactly where and what to put thanks.
|
All times are GMT. The time now is 12:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|