Module: Produce Client Side Script - 3755P
Assignment 8 - PracticalTraining Package Unit Elements ICAITB137A Produce Basic Client Side Script for Dynamic Web Pages |
You must supply evidence that you have achieved every Element in order to Pass each Unit. Fulfilling every task below is one way of achieving all the Competencies.
This assignment also contributes approx. 13% to your subject (3755P) grade of Pass, Credit or Distinction.
Individual work. Please put your name at the top of this page, to be submitted at each step below. Please don’t lose this assignment sheet as it is the only record of your progress until the assignment is completed.
Solve the following problems using JavaScript using appropriate naming conventions for files and objects. Either:
demonstrate to the teacher your working programs with a verbal description of the problems you encountered OR
provide the working program on file with a written description of the problems you encountered as comments, with your name, at the top of your program.
Q1. 90 Day License. Write a program that displays a web page containing the message:
“Thankyou for accepting our terms. Your license will expire on Wednesday, 21st May, 2006.”
The actual date shown should correspond to 90 days after the current date of the program execution. Make sure you use the same format shown.
License Details:
Source:
Q2. Click Me If You Can. Write a program that displays a simple web page with an image that randomly jumps around the screen, fast enough to be challenging. If the user manages to click on the image a pop-up message is displayed saying “Got Me!” (This need only work for Internet Explorer 5+. Option: speed up if caught, slow down if not.)
Q3. Talking Pictures. Create a simple web page that includes a couple of images that each produces a different sound (maybe recordings of your voice) whenever the mouse moves over them. Use a Windows Media Player ActiveX object (this need only work for Internet Explorer 5+)
Assignment 9 - PracticalTraining Package Unit Elements ICAITB137A Produce Basic Client Side Script for Dynamic Web Pages |
You must supply evidence that you have achieved every Element in order to Pass each Unit. Fulfilling every task below is one way of achieving all the Competencies.
This assignment also contributes approx. 13% to your subject (3755P) grade of Pass, Credit or Distinction.
Individual work. Please put your name at the top of this page, to be submitted at each step below. Please don’t lose this assignment sheet as it is the only record of your progress until the assignment is completed.
Solve the following problems using JavaScript using appropriate naming conventions for files and objects. Either: demonstrate to the teacher your working programs with a verbal description of the problems you encountered OR provide the working program on file with a written description of the problems you encountered as comments, with your name, at the top of your program.
Q1. Annoying Ad.
Create three web pages. The first page is a simple advertisement saying “Rent This Space” containing JavaScript that prevents the page from being loaded into a frame. The second page is a simple frameset for holding two frames: a “navigation” frame and a “content” frame. The “navigation” frame should load the third page which contains a button that closes the entire frameset. The “content” frame tries (but should fail) to load the advertisement (first) page. Include JavaScript in the frameset (second) page so when it loads, it opens the advertisement (first) page in a new window (assuming “pop-ups” have been allowed) that has no toolbar or status bar, and place it behind (so the ad is only revealed once the frameset page is closed with the navigation page button).
View Advertisement - Functional only in Internet Explorer
Q2. Valid Email Address.
Create a form that only accepts an entered email address that is valid. The form must use regular expressions to prevent illegal characters being included, as well as checking for a username, “@” and a “.” between each of the domain names for organisation, organisation type or country. (Hint: if you get stuck, try searching for “email validation” on the net.)
Source:
Q3. It’s About Time. (Optional - no extra marks) Using cookies, display in the status bar how long ago, in seconds, this web page was last opened. (Hint: every time the page is read, store the current time in a cookie after displaying the difference from the previous time. Optionally: display days, hours, minutes and seconds since last time.)
