|
New Perspectives JavaScript and Ajax 2nd Edition |
|
If you don't like the road you're on, pave a new one. |
|
Tutorial 04 |
|
Introduced the concept of the JS object. Session 4.1 covered fundamentals of objects, including relation of Web elements and features to the document object model (DOM). Examined how to access object collections from the DOM and how to reference Web page elements based on tag name, ID value, and name value. Learned how to create an array of Web page elements all sharing the same class value. Session 4.2 focused on how to use knowledge of objects, properties, and events to create an interactive pull-down menu system for a Web page. Explored the use of event handlers as object properties and saw how to employ the onclick and onmousever event handlers in a JS program. Session 4.3 refined the pull-down menu system by adding animation using the setInterval() method and the css clip style. Explored how to write code for sliding menus and tabbed menus. |
Tutorial 04 |
|
Working with Objects and Styles |



