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

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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
Background 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
Background image of page 3

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

View Full DocumentRight 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
Background 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:)
Background image of page 5

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

View Full DocumentRight 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
Background image of page 6
Project 10: Creating Pop-up Windows, Adding Scrolling Messages, and Validating Forms 7 Starting Notepad and Opening an HTML File
Background image of page 7

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

View Full DocumentRight 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
Background 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
Background image of page 9

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

View Full DocumentRight 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
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/14/2011 for the course COMPUTER 091 taught by Professor Rajivsir during the Summer '11 term at MIT.

Page1 / 64

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

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online