|
||
| Inside Technique : DHTMLLib 2.0 : Path Demonstration If you are familiar with Internet Explorer 4.0's object model, the path demonstration script will look very familiar. In this demonstration we create an image that travels in a simple circle. Without DHTMLLib, to write this to run cross-browser, you would need to recognize the following object model differences between Netscape Navigator and Internet Explorer.
With DHTMLLib, we hide these differences and let you focus on the task at hand, making the image go in
a circle. Below is the source code for the path demo. Notice that there is no browser detection in the
code. All the browser differences are hidden within the included javascript library. In the path animation we wrote the code just as if we were programming Internet Explorer 4.0. DHTMLLib builds an object model that is a subset of Internet Explorer 4.0 in Netscape Navigator making it easy to write cross-browser scripts. This subset is defined by the set of functionality supported by Netscape Navigator so you will not be able to do everything you can do in Internet Explorer - but what you can do is written using Internet Explorer's object model. While DHTMLLib is designed to hide the object model differences, the library by itself is not a perfect solution. You still should have an understanding of both browser's object model and some of the fundamental differences. Next we introduce some background information on both object models. Page 1:DHTMLLib 2.0 © 1997-2000 InsideDHTML.com, LLC. All rights reserved. |