Table of Contents
- About the Author
- We Want to Hear from You!
- Reader Services
- Part I: Getting Started
- Hour 2. Creating a Simple Script
- Hour 4. Using Functions and Variables
- Hour 5. Using Strings and Arrays
- Hour 6. Testing and Comparing Values
- Hour 7. Repeating Yourself: Using Loops
- Hour 8. Using Math and Date Functions
- Part III: The Document Object Model (DOM)
- Hour 9. Working with the Document Object Model
- Hour 10. Responding to Events
- Hour 11. Using Windows and Frames
- Hour 12. Getting Data with Forms
- Hour 13. Using Graphics and Animation
- Hour 14. Creating Cross-Browser Scripts
- Hour 15. Creating Custom Objects
- Hour 16. Working with Sounds and Plug-Ins
- Part V: Working with Dynamic HTML (DHTML)
- Hour 18. Working with Style Sheets
- Hour 19. Using Dynamic HTML (DHTML)
- Hour 20. Using Advanced <em>DOM</em> Features
- Part VI: Putting It All Together
- Hour 23. Creating <em>DHTML</em> Applications
- Part VII: Appendices
- Appendix C. Glossary
- Appendix E. DOM Quick Reference
I created an onMouseOver event handler for rollovers, and it works in Internet Explorer but not Netscape. What's wrong?
This is probably because you used the onMouseOver handler in the <img> tag. This is supported only by Internet Explorer. For Netscape, you need to make the image a link and use event handlers in the <a> tag. (This will also work in Internet Explorer.)
Can I use rollovers in an image map?
No, you'll need to replace the entire map image to do this. Usually, it's easier and faster to divide the map image into a number of sections and use those as the rollovers.