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

Hour 18. Creating Dynamic Pages with the... > Workshop: Creating Dynamic HTML Anim...

Workshop: Creating Dynamic HTML Animation

One of the most common uses for positioning is to create animation. In Hour 15, “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 15 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 18.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