vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   make terms page submit button count down (https://vborg.vbsupport.ru/showthread.php?t=74046)

Mythotical 01-09-2005 04:06 AM

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

rake 01-09-2005 08:33 AM

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" .. > )

Mythotical 01-10-2005 12:18 AM

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.

Mink_ 01-10-2005 12:25 AM

If I'm not mistaken, it should go in the registration section your html templates.

Mythotical 01-10-2005 01:01 AM

I got it, I put it in the registration_rules template and it works perfect. Thanks for the help Mink and Rake.

shadiguy1 01-10-2005 01:06 AM

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
  • Page Generation 0.01037 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete