ChapterÂ 2.Â DHTML Essentials
DHTML seems like a curiously old-fashioned term these days, especially within the context of more modern browser facilities such as HTML5 Canvas, SVG, and Flash. However, rather like the tortoise and the hare, DHTML will always be the more reliable (if slower) contender when the other, more exciting methods are not guaranteed to be available.
Actually, in many cases you donât need anything other than DHTML; the use of other methods can often be attributed simply to developer âwantsâ rather than âneeds.â Casual games, image zooms, and many other effects are perfectly feasible without resorting to the âpower tools.â Libraries like jQuery can make implementation even easier. A little thought and delicate manipulation of the DOM will ensure that DHTML graphics can move quickly and smoothly.
Creating DHTML Sprites
In computer graphics, sprites are two-dimensional bitmap objects that can be moved around under software control. Until the advent of three-dimensional polygon graphics, video game consoles used sprites almost exclusively for generating their moving characters. Mobile devices have prompted a resurgence in the use of sprite-like graphics for casual games and other user interface effects. You ...