Add two new options to the pull-down menu

Assignment Help Computer Engineering
Reference no: EM131987111

Assignment

You will be modifying a javascript program. Javascript is a powerful computer language which works with browser software to add buttons, menus, etc.

This assignment will be out of 1000 possible points.

Getting started:

1. Right-click on the link hello_java.html and choose "Save Link As..." Save the link to your desktop.

2. This will create a file called "hello_java" on your desktop. You can open this in a text editor (such as Notepad or Notepad++ for Windows or Textedit or BBEdit for Mac).

3. To open the file in a text editor, do not just double-click on "hello_java". Either right click on the icon and choose your text editor, or open the text editor and open hello_java from there.

Tips:

• Play with the webpage before editing it.

• Read through the webpage code before you edit it.

• Quickly view the website code within the browser by right-clicking on the webpage and selecting "View page source" (or keyboard shortcut Ctrl-U).

• Pay attention to the comments within the website code.

• Firefox and Internet Explorer are the recommended browsers (Chrome and Safari sometimes have problems displaying the webpage).

• Notepad++ for Windows and BBEdit for Mac are better alternatives to Notepad and Textedit. (See Assignment 2 for download links.)

Required Items:

• Add the current date, which should update to reflect whatever day it is when viewed. (100 points)

o The script that accomplishes this is already in the file, but as a comment.
o Read the comments carefully. They will explain what to do.

• Modify the file so that it is possible to say two more things (other than hello and hate), such as "I like [person's name]" and "I love[person's name]". To accomplish this, you will need to make the appropriate changes in two places:

o Add two new options to the pull-down menu. Currently, there are the options Hate and Hello. Add two more, such as Love and Like.

o Add two new cases to the function my_function. This means that when the user selects Love or Like, the appropriate response will be displayed when the user clicks the "Greet" button.

• The pulldown menu only shows one item at a time. Make it so two items are displayed at a time. Note: This only shows up properly in Internet Explorer and Firefox.

• The left edge of the textbox (next to NAME) should be lined up with the left edge of the menu below it. Add spaces to push the textbox to the right.

o Look in the source code. A couple spaces have already been added.
o The spacing need not be perfect, just closer.

• There is a hyperlink that goes to the class webpage. It has several problems, which you will fix. The hyperlink says "Place your mouse on and off of this".

o Change the background color action:

- When the mouse first hovers over the text, the background will turn yellow. Make it turn pink instead.

- After the mouse moves off the text, the background remains the same color. Alter this so that moving the mouse off the text changes the background to blue. The command for turning the background blue works the same way as the code that changes it to yellow (or pink), except it is "onMouseOut" instead of "onMouseOver".

o Change the text and the URL for the hyperlink:

- Replace "Place your mouse on and off of this" with new text, indicating that the person is going to your personal webpage (Assignment 2).

- Replace the URL with the URL of your personal webpage. If you did not complete Assignment 2, you may use any URL.

Reference no: EM131987111

Questions Cloud

Create an initial researched and cited discussion response : Create an initial researched and cited discussion response early in the week about the topic you choose and follow with at least two researched.
What are the US tax consequences of Hans US activities : Hans, a citizen and resident of Argentina, is a retired bank executive. What are the U.S. tax consequences of Hans' U.S. activities
Analyze how marketing affects customer value : Analyze how marketing affects customer value. Please provide at least one example.
Analyze inventory policies : Describe how you manage the groceries you buy, and analyze your inventory policies. Do you purchase in bulk at a price club?
Add two new options to the pull-down menu : Add two new options to the pull-down menu. Currently, there are the options Hate and Hello. Add two more, such as Love and Like.
Compute operating income for rim and tip : Assume that next year, Research in Motion sells off its interest in TIP Communications (one of its subsidiaries). Compute operating income for RIM and TIP
Examine company strategy and its effectiveness : Examine company's strategy and its effectiveness regarding these issues (data collection).
Determined by the motive of profit maximization : Can a capitalist market be a fair mechanism since wages are determined by the motive of profit maximization?
Weighted average cost of capital after the acquisition : What is Stephenson’s weighted average cost of capital after the acquisition? What after-tax cash flow will be produced annually after the acquisition?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Validate and correct the errors in the web page file

While it may sound simple to validate your HTML code, it is often times difficult to understand the error messages validation services return. Using the W3C Markup Validation Service, validate and correct the errors in the web page file.

  What indicates the big-o value

What indicates the Big-O value of a given method (or algorithm) - What represent the best-case, average-case and worst-case performance of an algorithm?

  Examine possible risks that can arise when systems are

examine possible risks that can arise when systems are constructed using cots. what steps can an organization take to

  As the text describes there are seven 7 steps in the

q1. as the text explains there are seven 7 steps in the program development cycle. identify which of the steps that you

  Draw a schematic block diagram showing essential components

Draw a schematic block diagram showing essential components of a computer, their functions, and how they interact with each other.

  Discuss the translation or compiler effort from c to c

Discuss the translation/compiler effort from C to C on the two machines after a artful rearing of the paper by Quinn and Hatcher.

  Explain the functions of devices used for data

Explain the functions of devices used for data and signal transform, i.e. how the analog voice is converted to the digital or analog signals.

  Designing a solution to the problem

Designing a solution to the problem and implementing the design using principles of correct syntax

  Computing the cryptosystem

Consider the following cryptosystems and compute which security service(s) (e.g. Authentication, Integrity…etc) they offer: Example: Ek(M) - Confidentiality

  What are major characteristics of modern multimedia system

What are the major characteristics of a modern multimedia system? What is the most important characteristic in your opinion?

  History of an employees hours

The time clock shall keep a history of an employee's hours for a two-week pay period. The application shall have the subsequent functionality:

  Which returns the visit action

Let a visit action in the Euler tour traversal be denoted by a pair (v,a), where v is the visited node. which returns the visit action (w,b) following (v,a).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd