Add two new cases to the function my-function

Assignment Help JAVA Programming
Reference no: EM131988831

Assignment

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

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.

Required Items:

• There is a button that reads "Click me!" Change this text from "Click me!" to any other text.

• When clicked, the button will create a pop-up window reading "Good job!". Replace this text with a different message.

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

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

- Replace "Place your mouse on and off of this" with new text.

Reference no: EM131988831

Questions Cloud

Write a report on a special probation-parole client : Write a report on a special probation/parole client and programs that have been established to address this problem client.
Prepare the adjusting entry for the accrual of interest : Foren Corporation had the following transactions pertaining to debt investments. Prepare the adjusting entry for the accrual of interest at December 31
What does this question mean in econ : And my vote is the United States." -- John Barrasso What does this question mean in Econ?
Prepare the journal entries for any impairment loss : Prepare the journal entries for any impairment loss occurring at 30 June 2015 including supporting calculations
Add two new cases to the function my-function : 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.
What are the type i and ii decision error costs : What are the Type I and II decision error costs? Which decision error is more likely to be discovered by the CEO?
Is clean air a scarce good in economic terms : Is clean air a scarce good in economic terms? Explain why
What did marshall mcluhan mean by calling : What did Marshall McLuhan mean by calling the world of today a "GLOBAL VILLAGE" and give examples to what he might be saying?
Increase in the demand for online streaming : An increase in the demand for online streaming music indicates that more is

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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