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

Chapter 14. Working with DHTML > Moving an Object in Two Dimensions

Moving an Object in Two Dimensions

It's possible to take the code from the three previous examples and combine them into one convoluted script that works cross-browser, as shown in Script 14.4 and Figure 14.5.

Script 14.4. Here's the single script that makes the butterfly fly in all browsers.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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