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:
- How to use the DOCJSLIB's linked image model's external view.
- How to use the DOCJSLIB's linked image model's internal view.
- How to use the DOCJSLIB's window and page scrolling functions.
- How to use DOCJSLIB's fixed-interval repetition function.
- How to use DOCJSLIB's
findHighestZ
function. - How to use DOCJSLIB's vertical positioning function.
- How to use DOCJSLIB 3.0 for writing applications.
- How to build your watermarks application.
At this point, you may also view the DOCJSLIB-compliant code for:
- Connect-Three board game: view it or run it.
- Pop-out Elements: view it or run it.
- Page Watermarks: view it or run it.
Produced by Yehuda Shiran and Tomer Shiran
Created: November 9, 1998
Revised: November 12, 1998
URL: https://www.webreference.com/js/column29/