The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Sorry, my imagination is very limited.
|
#12
|
|||
|
|||
Thank you guys
|
#13
|
|||
|
|||
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"
|
#14
|
|||
|
|||
Help Please!
|
#15
|
||||
|
||||
Quote:
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~~ |
#16
|
|||
|
|||
brill
thanks |
#17
|
|||
|
|||
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> |
#18
|
|||
|
|||
Bump!
|
#19
|
||||
|
||||
Quote:
Code:
secs = 10; // Number of secs to delay Code:
document.forms.register.Submit.value = "Agree"; Code:
document.forms.register.Submit.value = "Agree (" + wut + ")"; 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. |
#20
|
||||
|
||||
I guess you saw the demo because it has been put into use on the register page for vB.org.
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|