Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-27-2001, 05:33 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, my imagination is very limited.
Reply With Quote
  #12  
Old 09-27-2001, 06:36 PM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you guys
Reply With Quote
  #13  
Old 11-14-2001, 05:49 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #14  
Old 11-15-2001, 08:20 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help Please!
Reply With Quote
  #15  
Old 11-15-2001, 08:33 PM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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~~
Reply With Quote
  #16  
Old 11-15-2001, 10:13 PM
fiona fiona is offline
 
Join Date: Nov 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

brill
thanks
Reply With Quote
  #17  
Old 11-15-2001, 10:44 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #18  
Old 11-17-2001, 08:59 PM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump!
Reply With Quote
  #19  
Old 11-19-2001, 05:46 AM
bigmattyh's Avatar
bigmattyh bigmattyh is offline
 
Join Date: Nov 2001
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 12-08-2001, 11:08 PM
exodus's Avatar
exodus exodus is offline
 
Join Date: Nov 2001
Location: Providence, RI USA
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 PM.


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.04583 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete