Advanced JavaScript: Insights and Innovative Techniques
Dan Livingston · CERN Document Server (European Organization for Nuclear Research) · 2002
Preface. 1. Mouseovers. How Rollovers Work. Shelley Biotech. Preloading Images. Mouseovers and Submenus. Mouseovers and Stylesheets. Recap. 2. Dynamically Changing Table Configurations. Basic Report Making. Advanced Table Configuration. 3. Swapping Out Image Maps. The Scenario. Multiple Image Maps in HTML. Image Map Information in JavaScript. 4. Altering Lists. Adding to Lists. Switching Between Unordered and Ordered Lists. Inserting Line Items into Specific Positions. 5. Dropdown Menus. Navigation. Altering Menu Content. The Whole Code. 6. Text Fields, Checkboxes, Radio Buttons, and Textareas. Copying Text Fields with Checkboxes. 7. Validating Forms. Providing Information. Validating User Data. Validating Credit Card Numbers. 8. Stylesheets. Stylesheet Overview. Classes. Positioning Layers. Modifying HTML Tags. Linking to an External Stylesheet. 9. There's Something About DOM. The Beginnings of DOM. About Document Objects. The Flavors of DOM. The W3C DOM. 10. Event Objects. Event History. Event Propagation. Referring to the Event Object. 11. Palette Man. Palette Man Components. Adding Functionality. Rotating the Colors. 12. Hierarchical Menus: Introduction. What HierMenus Does. The Arrays. 13. Heirarchical Menus: DOM and Main Functions. HM_ScriptDOM. The Main Functions. 14. Hierarchical Menus: Behavior. Menu Behavior. 15. Dragging Layers. Background. Events and Objects. Dragging Code. The Whole Thing. 16. Cookies. What Cookies Are. Cookie Parameters. Saving Cookies. Retrieving Cookies. Bill's Cookie Code. 17. Regular Expressions. Introduction to Regular Expressions. Creating Regular Expressions. Regular Expression Object Properties. Running Regular Expressions. Testing, Reading, and Replacing Text with Regular Expressions. 18. XML. Importing and Reading XML. Recap. 19. Javascript and ActionScript. What is ActionScript. Calling JavaScript Using getURL. FSCommand. 20. FolderTree: Creating the Tree. What FolderTree Does. Creating Folders and Links. Creating Subfolders. Adding Documents/Links. 21. FolderTree: Displaying the Tree. Displaying the Tree. Drawing the Layers. 22. FolderTree: Finishing It Up. Drawing the Tree. Opening and Closing Folders. 23. News Scroller. The News Scroller. 24. Layer Slider. Sliding Around. Appendix A. XML Primer. What is XML. Why XML Is Good. Goals of XML. Elements and Nodes. Structure and Syntax. The Special Symbols and Comment. Recap. Appendix B. FolderTree Code. ftexample.html. folderTreeLeftFrame.html. startPage.html. defineMyTree.js. fteins4.js. ua.js. Index.