Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a web page that allows a user to try out different text and background color combinations. Javascript is used to implement the functionality. Below

Develop a web page that allows a user to try out different text and background color combinations. Javascript is used to implement the functionality.

Below are two screen shots of the working application. The user clicks the buttons at the bottom to change either the foreground color or the background color.

An HTML file should include the following features:

Some texts (Anything you like)

Put the buttons in the table started near the bottom of the page

Hint: You may use nested multiple divs to represent the borders, backgrounds, and font colors

A CSS file should include the following features:

Implement a CSS file to let the web page look like the screen shots below

Set font-size of buttons as xx-large

Define 5 styles for foreground buttons and 5 styles for background buttons. For example, class selector colorA will set the text color to color A.

Then, apply styles to the buttons.

You dont have to use the same colors in the screen shots. However, borders and positions should be similar as the screen shots below

A Javascript file should include the following features:

Assign events to the buttons so as to apply a style to the texts or the background when a button is clicked. For example, if the Foreground button A is clicked, texts should be changed to blue. If the Background button A is clicked, the text background (yellow area) should be changed to blue

Repeat the a to assign events for every button.

What it should look somewhat like before and after pressing a button:

image text in transcribed

image text in transcribed

Lorem ipsum dolor sit amet, mauris quam, felis sed, eros quis neque ut odio, blandit non mollis egestas elit velit posuere. Non odio egestas donec a odio wisi. Luctus consectetuer est nulla, pulvinar urna dolor egestas, accusamus ut, tortor nullam potenti suscipit. Maecenas auctor mauris, nullam dictum non accumsan, ultrices cursus tincidunt, vestibulum fusce nascetur id mauris. Vel id ante netus aliquam quam in, mattis vehicula nullam. Sint sit elit, risus eget suscipit pede non, mauris libero etiam non, ornare a magna nam. Sed voluptate a. Tortor sollicitudin lacus vehicula turpis, ante aliquam, placerat id, purus venenatis. Laoreet elementum reprehenderit eget donec donec dictum, urna eros scelerisque, nunc faucibus, et tempus nibh, diam volutpat euismod odio eros. Ac morbi imperdiet. Dictum gravida molestie amet sapien malesuada donec. Consectetuer a vel per pellentesque curabitur, ullamcorper porta in est in, dolorem eveniet vulputate curabitur donec, ut morbi maecenas quisque vivamus amet wisi. Eu urna gravida sed lorem, lorem amet a, convallis molestie cuismod nunc, pede a, non sed non ad mauris maecenas rhoncus Foreground A D E Background A B C D E

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

=+How will this affect the recruiting process?

Answered: 1 week ago