Netscape 6, Part V: DOCJSLIB 1.1: A Final Word - Doc Javascript
Netscape 6, Part V: DOCJSLIB 1.1
A Final Word
In this column we continued our look at scripting Netscape 6. We took DOCJSLIB 1.0 and extended it to support Netscape 6 and other Mozilla-based browsers. We showed you how to detect the browser type out of the four browsers: IE4.x, NS4.x, IE5.x, and Netscape 6. We explained how to modify the library functions to support Netscape 6. We went over DOCJSLIB 1.1 principles and usage scenarios. We justified the library's IMG, DIV, and event handling strategy. We also gave you some directives on how to assemble an application with DOCJSLIB. We demonstrated the new version with our traditional Tic-Tac-Toe game.
In this column, you have learned:
- How to sniff the browser type
- How to use DOCJSLIB's principles
- How to use DOCJSLIB's image model
- How to use the
makeImage()function - How to adapt DOCJSLIB 1.0 to Netscape 6
- How to use DOCJSLIB to write an application
- How to write the event handler
- How to write the Tic-Tac-Toe's functions
We provided the code for the Tic-Tac-Toe board game, as well as for DOCJSLIB library alone. A ZIP file version of DOCJSLIB 1.1 library is also provided.
Further Reading
- Introducing DOCJSLIB, A Cross-Browser JavaScript Library
- DOCJSLIB Version 2.0
- DOCJSLIB Version 3.0: Supporting Watermarks
- DOCJSLIB Version 4.0: Scrollers, Watermarks, and Games
- Netscape 6, Part I: Detection and Scripting
- Netscape 6, Part II: Animation
- Netscape 6, Part III: The Event Model
- Netscape 6, Part IV: DOM Differences and Commonalities with IE5.x
- Netscape 6 Tips
- Insidedhtml's Cross-Browser DHTML
- CNET's Better DHTML Through Object-Oriented Design
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: January 29, 2001
Revised: January 29, 2001
URL: http://www.webreference.com/js/column76/12.html


