0% found this document useful (0 votes)
58 views1 page

Assignment # 2 Javascript

The document contains instructions for two programming assignments. Assignment 1 involves creating an earning calculator with buttons to update values for friends in different categories and display a total earned balance. Assignment 2 involves designing a browser window with a status bar, link history, current link/port display, a text box to load pages via iframe, and an image that changes source on mouse events.

Uploaded by

nabila anum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Assignment # 2 Javascript

The document contains instructions for two programming assignments. Assignment 1 involves creating an earning calculator with buttons to update values for friends in different categories and display a total earned balance. Assignment 2 involves designing a browser window with a status bar, link history, current link/port display, a text box to load pages via iframe, and an image that changes source on mouse events.

Uploaded by

nabila anum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment # 02

Practice of Javascript objects, Events and syntax.

Q 1. Write a program that is an earning calculator.

Make a button at the top named “New Visitor”. When user clicks on new visitor values of calculator is
updated as

Earning Calculator
F1 F2 F3
5 8 10
50 64 50

Total Earned Balance through connects: 164

 For first five friends, friends are categorized to category 1 and 10 points for each friend is added.
 For next eight friends, friends are categorized to F2 and 8 points are added for each friend.
 For next 10 friends, friends are categorized to F3 and 5 points are added for each friend.
 At the end show total earned balance through connects.

Q: 2. Design a window that must have following properties.

1. Status bar showing current date and time.


2. Left area showing history of past five links user has visited in the browser.
3. At the top show current link and port.
4. Make a text box that takes link from user and display those web pages as entered by user in the
window by using iframe tag and update link and port accordingly as well.
5. Make an image that changes its src on mouse down and restore back to original source on
mouse up events.

You might also like