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.