file dhtml ?>
Ali's Homepage - DHTML and its applications
HOW ELSE COULD WE HAVE USED IT ?
On the other hand, it's important to know that HTML offers much more than that: event-based calls. An HTML event is any kind of thing that happens on the web site: the page having finished loading (onLoad), just before the page being closed (onBeforeUnload), the mouse going over (onMouseOver), finished going over (onMouseOut), clicked (onClick), ... an item (therefore a layer, an image, a table or any other item). Those events can be on the whole document (like onLoad, onUnLoad, onBeforeUnload, onMouseMove, keyboard events like onKeyDown and onKeyUp or page dimension and scrolling events like onResize and onScroll) or for a particular element. Thanks to this, for example, we can change the color of a text when the mouse goes over it:
<div onmouseover=this.style.color="#ff00ff" onmouseout=this.style.color="#000000">test</div>
You can give a name to all images, tables and layers: to do so, the id property can be used. For example:
<div onmouseover=getElementById("ali").style.color="#ff00ff" onmouseout=getElementById("ali").style.color="#000000">test</div>
As you can see, the color of the "ali" layer changes when the mouse goes over the layer!
MORE THAN JUST WEB PAGES...
My web page is fully coded using DHTML, which somehow shows the power of this method. Yet, there's an even more important thing to see: my web site has a window manager, and that manager is no more than 500 lines long. Yet, Windows' or other operating systems' window managers are at least tens or even hundreds of thousands of lines of code thought they're not more complicated than my web site's. That observation is valid for other applications as well (for example an image browser), therefore using DHTML for an application can save the programmer from lots of lines of coding! Microsoft having remarked this provides the CHtmlView interface for integrating DHTML into any given dialog-box based application. This way, you can have very beautiful and extremely reactive interfaces for your C++ / Basic application with very little coding.
COMFORTABLY WRITING DHTML CODE
Page read in 0.0110 seconds and sent using ZIP compression ?>