#9 Pop-up Windows, Scrolling Messages, and Form Validation

#9 Pop-up Windows, Scrolling Messages, and Form Validation...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
HTML Concepts and Techniques Fourth Edition Project 10 Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 2 Project Objectives Explain the four basic components of a scrolling message Write a JavaScript user-defined function to display a scrolling message in a form text box Describe the If statement Define conditionals and discuss the conditional operands Define recursion
Image of page 2
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 3 Project Objectives Write the JavaScript code to create a user- defined function to calculate monthly car loan payments Validate data entry using a nested If…Else statement Describe the parseInt(), parseFloat(), and isNaN() built-in functions Use a select list for data entry Describe the focus() method
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 4 Project Objectives Describe the Math object’s pow() and the Number object’s toFixed() methods Write the JavaScript code to create a user- defined function to format output in currency format Discuss For and While loops Use the open() method to display another Web page in a pop-up window Use the lastModified property and substring() method to display only the date a Web page was last modified
Image of page 4
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 5 Starting Notepad and Opening an HTML File Start Notepad, and, if necessary, maximize the window. If the Word Wrap feature is not enabled, click Format on the menu bar and then click Word Wrap to enable it With the USB drive plugged into your computer, click File on the menu bar and then click Open on the File menu If necessary, click the Look in box arrow and then click UDISK (G:)
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 6 Starting Notepad and Opening an HTML File Double-click the Project10 folder and then double-click the ProjectFiles folder in the list of available folders If necessary, click the Files of type box arrow and then click All Files Double-click castle.htm in the list of files
Image of page 6
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 7 Starting Notepad and Opening an HTML File
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 8 Creating a Form Text Box to Display a Scrolling Message Click line 20 below the closing </p> tag for the title image, castleautomalllogo.gif Enter the JavaScript code shown in Table 10-1 on page HTM 422
Image of page 8
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 9 Creating a Form Text Box to Display a Scrolling Message
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 10 Creating the scrollingMsg() User-Defined Function Click line 7 Enter the JavaScript code shown in Table 10-2 on page HTM 422 and then press the ENTER key
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern