vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Delay the "AGREE" Button (https://vborg.vbsupport.ru/showthread.php?t=28316)

Admin 09-27-2001 05:33 PM

Sorry, my imagination is very limited. :D

Ruth 09-27-2001 06:36 PM

Thank you guys :)

Joshua Clinard 11-14-2001 05:49 PM

Which instance of 1000 do you replace with 1500, or whatever value you want for the seconds? I replaced all of them with 3000, and it slowed down the seconds, to where 3 seconds elapsed for every second that it counted. I also want to change the button to read "I Agree." Where do I put that in? Can someone highlight the part of the code I need to change to change the number of seconds, and the part I should change to make it read "I Agree"

Joshua Clinard 11-15-2001 08:20 PM

Help Please!

squawell 11-15-2001 08:33 PM

Quote:

Originally posted by Joshua Clinard
Which instance of 1000 do you replace with 1500, or whatever value you want for the seconds? I replaced all of them with 3000, and it slowed down the seconds, to where 3 seconds elapsed for every second that it counted. I also want to change the button to read "I Agree." Where do I put that in? Can someone highlight the part of the code I need to change to change the number of seconds, and the part I should change to make it read "I Agree"
<script>
document.forms.register.Submit.disabled =true;
window.setTimeout("Timer()", 15000);
function Timer() {
document.forms.register.Submit.disabled =false;
};
<script>


i think the 15000 is u looking for~~

u can change 15000 u want it to be~~~

i do it like that~~

fiona 11-15-2001 10:13 PM

brill
thanks

Joshua Clinard 11-15-2001 10:44 PM

I meant which instance of 10 do you replace with 15 in the following code, and also where do I put the "I Agree" label?

Code:

<script>
secs = 10; // Number of secs to delay
wait = secs * 1000;
document.forms.register.Submit.disabled =true;
for(i=1;i<=(wait/1000);i++) {
        window.setTimeout("doUpdate(" + i + ")", i * 1000);
}
window.setTimeout("Timer()", wait);

function doUpdate(num) {
        if(num == (wait/1000)) {
                document.forms.register.Submit.value = "Agree";
        } else {
                wut = (wait/1000)-num;
                document.forms.register.Submit.value = "Agree (" + wut + ")";
        }
}

function Timer() {
        document.forms.register.Submit.disabled =false;
}
</script>


Joshua Clinard 11-17-2001 08:59 PM

Bump!

bigmattyh 11-19-2001 05:46 AM

Quote:

Originally posted by Joshua Clinard
I meant which instance of 10 do you replace with 15 in the following code, and also where do I put the "I Agree" label?
Here goes:
Code:

secs = 10; // Number of secs to delay
Replace this 10 with however many seconds you want the delay.
Code:

document.forms.register.Submit.value = "Agree";
Replace "Agree" with "I Agree".
Code:

document.forms.register.Submit.value = "Agree (" + wut + ")";
Finally, replace this "Agree (" with "I Agree (". You're set.

If you haven't yet tried, you should try playing around with the code if things aren't exactly the way you like 'em. Look for clues.

Like, for your question, you'd look for lines in the code that clue you in -- and you'd find the line "secs = 10; // Number of secs to delay" So change the number and see what happens. Or if you want to change "Agree" to "I Agree", just change the instances in the code where you see "Agree". On a short (and relatively simple) script such as this, you can't go wrong, and even if you screw something up, all you have to do is cut and paste and go back and fix it.

exodus 12-08-2001 11:08 PM

I guess you saw the demo because it has been put into use on the register page for vB.org. :)

Quote:

Originally posted by FireFly
Can you get a demo? I'd like to see this in action. :)


All times are GMT. The time now is 08:38 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.01231 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete