Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Which of these Web page elements arecommonly created with JavaScript? (Select

ID: 3618075 • Letter: 1

Question

1. Which of these Web page elements arecommonly created with JavaScript? (Select three answers.) (Points:5)
      Interactive images
       Backgroundcolors
       Expandingmenus
       Games
       Thumbnailimages
       Stylerules


2. A friend tells you he wants to make a Webpage where the images change when the mouse pointer points to them.You tell him those are called _________________ images. (Select thebest answer.) (Points: 5)
       Thumbnail
       Mouse
       Pointer
       Rollover


3. You want to add a JavaScript function tothe <head> section ofyour page. What tags will you use to tell the Web browser that youare using JavaScript? (Select the best answer.) (Points: 5)
       <script> tags with a type attribute
       <java> tags
       <style> tags with a type attribute
       <function> tags


4. You want to add a JavaScript function toyour page that creates a dialog box. What function will you use?(Select the best answer.) (Points: 5)
       alert()
       Date()
       onmouseout
       onmouseover


5. You have typed the following code, butwhen you view the page in your browser, the alert() message is cut off after You. How can you fix the problem and show theentire message? (Select the best answer.)
<a href="family.html"onclick="alert('You're going to learn about my family!');"(Points: 5)
       Take out the quotationmarks inside the parentheses.
       Take out thesemicolon.
       Add a backslash beforethe apostrophe in You're.
       Delete the href attribute.

Explanation / Answer

1. Which of these Web page elements arecommonly created with JavaScript? (Select three answers.) (Points:5)
       Interactive images
       Backgroundcolors
       Expandingmenus <-----
       Games
       Thumbnailimages
       Stylerules


2. A friend tells you he wants to make a Webpage where the images change when the mouse pointer points to them.You tell him those are called _________________ images. (Select thebest answer.) (Points: 5)
       Thumbnail
       Mouse
       Pointer
       Rollover <----


3. You want to add a JavaScript function tothe <head> section ofyour page. What tags will you use to tell the Web browser that youare using JavaScript? (Select the best answer.) (Points: 5)
       <script> tags with a type attribute <------
       <java> tags
       <style> tags with a type attribute
       <function> tags


4. You want to add a JavaScript function toyour page that creates a dialog box. What function will you use?(Select the best answer.) (Points: 5)
       alert() <----
       Date()
       onmouseout
       onmouseover


5. You have typed the following code, butwhen you view the page in your browser, the alert() message is cut off after You. How can you fix the problem and show theentire message? (Select the best answer.)
<a href="family.html"onclick="alert('You're going to learn about my family!');"(Points: 5)
       Take out the quotationmarks inside the parentheses.
       Take out thesemicolon.
       Add a backslash beforethe apostrophe in You're. <------
       Delete the href attribute.