Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CMPS 1 6 2 : Module 5 Programming Project * { font - family: sans - serif; } img { display: block; margin - left:
CMPS : Module Programming Project
fontfamily: sansserif;
img
display: block;
marginleft: auto;
marginright: auto;
div#divdiv#divmargin:em;padding:em;
div#outTextlineheight:em;minheight:em;
DON'T CHANGE THE showText FUNCTION
function showText
let iText document.getElementByIdinText;
let oText document.getElementByIdoutText;
oText.innerText iText.value;
Remember to use double quotes, for attribute values in HTML and single quotes, around
strings inside of JavaScript inside of attributes.
eg Span text.
Events
console.logEvents;
Change the link the tag in the HTML body below such that the
message "A link was clicked" is alerted when the link is clicked.
This can be accomplished by either updating the href attribute or adding the
onClick attribute then coding the required javascript.
Input Fields
console.logInput Fields";
Change the background color to red for the input text field the
tag in the HTML body when obtaining the focus and change it back to
white when the focus is lost.
Set the onkeyUp attribute of the input text field so that it calls the
showText function. The showText function is already coded. Just get it to execute
when typing in the text box.
Paragraphs
console.logParagraphs;
Add the attribute to the paragraph below the tag so that the goPioneers
function executes when the paragraph is clicked.
Finish the goPioneers Function so that it changes the text in the paragraph
below from "Hello World!" to Go Pioneers!" when the user clicks the paragraph.
Add the mouseOver attribute and insert JavaScript to conver the cursor to a pointer.
function goPioneers
Images
console.logImages;
Uncomment the img tag below.
Set the source to https:wwwpointpark.edufilesimageslogoverticalgreen.svg
Add the onclick attribute and code javascript to make the img disappear when clicked.
Styles
console.logStyles;
Write the swapColors function called via the onclick attribute
in the div tags below.
Use the style of div and div to swap the colors of the divs.
Hint: the style attribute that stores the background color is
called backgroundColor.
Click here for a greeting!
Hello World!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started