• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 19. Using Dynamic HTML (DHTML) > Workshop: Creating Dynamic HTML Animation

Workshop: Creating Dynamic HTML Animation

One of the most common uses for positioning is to create animation. In Hour 13, “Using Graphics and Animation,” you used JavaScript to create a simple animation. Using the DOM's positioning properties, you can animate the mouse from Hour 13 using a simpler approach.

Just to make things more fun (and because mice are still the only thing I can draw), you will animate three mice at a time using dynamic HTML. Using this technique for the animation provides smoother animation and is easier to program. Listing 19.2 shows the dynamic HTML animation script.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint