JavaScript 1.5 by Example
JavaScript 1.5 by Example
Click to enlarge
Author(s): Kingsley-Hughes, Adrian
ISBN No.: 9780789724991
Pages: 312
Year: 200101
Format: Trade Paper
Price: $ 45.67
Dispatch delay: Dispatched between 7 to 15 days
Status: Available

Introduction. I. WELCOME TO JAVASCRIPT. 1. Getting into JavaScript! JavaScript Is Everywhere. Why You Need to Learn JavaScript. JavaScript History. JavaScript Today.


The Future of JavaScript. What Is the Difference Between a Script and a Program? What About the Difference Between a Scripting Language and a Programming. Language? Tools for the JavaScripter. The Simple Text Editor. Using Visual Tools. Having the Latest Browsers. Other Tools. Creating an HTML Template.


Keeping a Script Library. 2. Combining JavaScript and HTML. Meeting of Worlds-HTML and JavaScript. The HTML Skeleton. The Block. More on the language Attribute. Hiding JavaScript from Older Browsers.


II. LANGUAGE TOUR. 3. JavaScript in Action. Exploring JavaScript Inputs and Outputs. Objects, Methods, . and Even Properties. Objects.


Methods. Properties. Using the alert() Method. Adding Comments to JavaScript. Single-Line Comments. Multi-Line Comments. Using the confirm() Method. Using the prompt() Method.


4. Handling Data with Variables. JavaScript Values. Strings. Numbers. Numbers, Numbers, Numbers. How Big a Number? How Small? Boolean. Special Data Types: Numbers, Nulls, and Undefined.


JavaScript Variables. Creating Variables. Creating Multiple Variables. Displaying the Contents of a Variable. Troubleshooting! Example. Example. Example. Using the prompt() Method to Assign a Value to a Variable.


BHEADS = Passing Variable Values to Another Variable. 6. Expressions, Conditions, Operators, and More Strings and Numbers. More on Terminology-What Are Expressions and Conditions? Expressions and Conditions. Introducing Operators. Arithmetic Operators. Relational Operators. Logical Operators.


Miscellaneous Unary Operators. Assignment Operators. Miscellaneous Operators. Revisiting Strings and Numbers. The JavaScript Calculator. 7. Using Statements in JavaScript. What Are Statements? The variable Statement.


The if Statement. Iteration Statements. The do . while Statement. The while Statement. The for Statement. The for. in Statement.


The continue Statement. The break Statement. The switch Statement. 8. Write Better JavaScript Scripts by Using Functions and Events. What Are Functions? Your First Function. Events. The onLoad Event.


The onClick Event. The onMouseover Event. The onMouseout Event. Using Events. Using the onLoad Event. Using the onClick Event. Using the onMouseover Event. Creating Effective Functions! Functions Running Functions! What Are Those Parentheses For? Using Parameters Between Functions.


The return Statement. Exercise-Temperature Conversion JavaScript. 9. Getting the Most Out of Objects. Objects-What Are They? Objects and Browsers. The JavaScript Objects-A Closer Look. The Math Object. Using the PI Property.


Using the max and min Methods. Using the round Method. Using the random Method. The Date Object. Using the getFullYear Method. Using the getMonth Method. Using the getDay Method. Hours, Minutes, Seconds.


and Even Milliseconds! The String Object. The toUpperCase and toLowerCase Methods. The substring Method. The with Statement. Object Methods and Properties. Array Object. Boolean Object. Date Object.


Function Object. Global Object. Math Object. Number Object. Object Object. RegExp Object. String Object. 10.


Bugs-How to Find Them and Kill Them. What Are Bugs? Types of Bugs. Introducing Syntax Errors. Runtime Errors. Logic Errors. Operator Precedence. Finding Errors. Narrowing Down Errors.


The Microsoft Script Debugger. Common Errors. Typos and Spellos! III. WHERE DOES JAVASCRIPT GO? 11. Going Beyond the Box (or Should That Be Head?). Thinking Outside the ! Linking, Linking, Linking! Inline JavaScript. When to Use Your , When to Link, and When to Make It Inline! Rule of Thumb. Rule of Thumb.


Rule of Thumb. Rule of Thumb. Rule of Thumb. IV. JAVASCRIPT AND DYNAMIC HTML. 12. Dynamic HTML and JavaScript. The World of DHTML.


The Concepts and Features of DHTML. An Object-Oriented View of Page Elements. Style Sheets and Layering. Scripts. Why Do Differences Exist Between the Browsers? What Can You Do with DHTML? 13. Cascading Style Sheets and JavaScript! A Little Cascading Style Sheets History. Introduction. Example 1-Changing Text Color.


Example 2-Formatting Text. Example 3-Formatting Hyperlinks. Example 4-Positioning. Example 5-Three-Dimensional Work (Well, 2.5D to Be Exact!). JavaScript. Step 1-Removing the Existing Style Information. Step 2-Adding.


Step 3- Adding the Event Handler. Step 4-Writing Some JavaScript. Creating Animation! What Is Animation? Animation and Internet Explorer. Doing the Same Thing . Only in Netscape Navigator. Making It Work in Both Browsers! Ups and Downs. Want to Go Diagonally? Back to JavaScript for a Moment. 14.


JavaScript and the Document Object Model. An Introduction to the Document Object Model. How Much Power Does It Give. Access to Page Elements. Simple Example of Accessing Page Elements. The More Elements the Better! Using srcElement. Adding. Parent Elements and Child Elements.


Expanding-and-Collapsing Text Example. Table Cells Example. The Event Model. onClick Event. onContextmenu Event. onDblclick Event. onHelp Event. onKeydown Event.


onKeypress Event. onKeyup Event. onMousedown Event. onMousemove Event. onMouseout Event. onMouseover Event. onMouseup Event. onStop Event.


JavaScript Power. 15. Examples, Examples, Examples! Example 1-Adding Last Modified Dates to Web Pages. Modifications. Example 2-Simple Clock. Modifications. Example 3-Simple Countdown Counter. Modifications.


Example 4-Simple Form Validation. Modifications. Example 5-Rollovers. Modifications. Example 6-Scrolling Status Bar Message. Modifications. More Modifications. Example 7-Controlling Cookies.


Modifications. Index.


To be able to view the table of contents for this publication then please subscribe by clicking the button below...
To be able to view the full description for this publication then please subscribe by clicking the button below...