Posted on 2005-05-15
1. Scripts must work with NS4+, IE4+ and AOL most popular versions
2. When click a button name "Code Gen", it will generate a random code base on the below formular, then populate the text box with the new code, re-click "Code Gen" button will regenerate and replace the text box with the new random code.
The text box name is: name="rqaRedemptionCode"
[Year Code + Month Code + Date] - [random 4 digit number]
Year Code = A to J (A=0 to J=9, if year end with 0 then A, current year is: 5 or F)
Month Code = B to M (B=1 to M=12, current month is May, then F)
Date = actual date (1 to 31)
random 4 digit number=any popular method of produce 4 digit random number
For example: today date is 2005, 5,15
example code is: FF15-5624
4. Please provide a ready to use code with html for testing.
Thanks, Maximum 500 as always.