intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

HTML - DHTML - JavaScipt

Chia sẻ: Nguyễn Mạnh Cường | Ngày: | Loại File: PDF | Số trang:0

163
lượt xem
61
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Tài liệu cơ bản tham khảo về HTML - DHTML - JavaScipt...

Chủ đề:
Lưu

Nội dung Text: HTML - DHTML - JavaScipt

  1. 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.
  2. 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 : H2 tag Picture 1 1. Create file Q2.css that format H2 element in point size 14, has underline and color as in picture 1.
  3. 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”
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2