tailieunhanh - HTML - DHTML - JavaScipt

Tài liệu cơ bản tham khảo về HTML - DHTML - JavaScipt. | HTML - DHTML - JavaScript Note - Put all files for Question 1 into QUESTION1 folder - Put all files for Question 2 into QUESTION2 folder Question 1 10 points Create the following web page 1. Write a script that accepts a string in a text field when click button remove all space tab or _ character in that string and then reserves that and displays reserved string in a message box. 2. When mouse over Reserve String heading this String change color to RED then change to original color when mouse out. 3. Create link Contact Us by default link has blue color visited link has red color active link has green. When mouse over link change to yellow color visited link change to black color active link change to violet color then it revert original color when mouse out. Question 2 15 points Create form as follow Picture 1 1. Create file that format H2 element in point size 14 has underline and color as in picture 1. H2 tag 2. Write script that when mouse over H2 tag color change to blue underline is disappeared. 3. Validate form when submit Require Field Name Password Confirm password must be equal password telnumber email. - Email must in correct form - Tel Number in format 0x xxxxxxx or 0xx xxxxxx or xxxxxxx x a number from 0-9 - Name must be enter first then other fields can be enter Name cannot has number sign and any special character. - If Male check in field name auto insert Mr. else auto insert Mrs. . For example Name Nguyen Van A when male radio is checked the name field must auto change value to Mr. Nguyen Van A. - Age o 15-25 o 25-35 o 35-45 o 45-55 o 55-65 o 65 - When submit form if any rule is violated the message box is displayed. If form is accept message will be displayed with the content depends on age o 15-25 You are in Group 1 o 25-35 You are in Group 2 o 35-45 You are in Group 3 o 45-55 You are in Group 4 o 55-65 You are in Group 5 o 65 You are in Group 6