Introducing DOCJSLIB Version 3.0, A Browser-Independent JavaScript Library for DHTML, Part III - Doc JavaScript | WebReference

Introducing DOCJSLIB Version 3.0, A Browser-Independent JavaScript Library for DHTML, Part III - Doc JavaScript


DOCJSLIB Version 3.0: Supporting Watermarks

In this column we introduce DOCJSLIB Version 3.0. This version is an expansion of DOCJSLIB Version 2.0 which we introduced in our last column. Version 2.0 included nine basic functions and handled creation and manipulation of a clickable DIV/A/IMAGE DHTML element as well as a DIV/HTML box element. Version 3.0 adds support for a simplified linked DIV/A/IMAGE DHTML element, and eight more functions.

Version 3.0 provides even more cross-browser infrastructure that users liked so much in previous versions. Non-programmers and DHTML scripters will find this version even more powerful for developing their Web applications. Object-oriented programming principles are still religiously kept, ensuring a clean Procedural Interface (like an API) between the user's application and the library's nuts and bolts. In this column, we demonstrate easy application authoring by implementing page watermarks. When you compare the size of this application to other watermarks implementations, you will be amazed to see how short this one is, thanks to our DOCJSLIB library of cross-browser functions.

In this column you'll learn:

At this point, you may also view the DOCJSLIB-compliant code for:

You can also view the DOCJSLIB functions in the DOCJSLIB 3.0 library. Just copy from these files and paste to your own application. A ZIP-file version of DOCJSLIB Library Version 3.0 is also provided.

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: November 9, 1998
Revised: November 12, 1998

URL: http://www.webreference.com/js/column29/