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

Chapter 13. Dynamic Techniques: The Basics > Moving Objects By a Certain Amount

Moving Objects By a Certain Amount

Moving an object from one precise point to another is great, but you have to know exactly where you want to move the object. Often, though, you simply want the object to move by a certain amount from its current location (Code 13.3 and Figure 13.4).

Code 13.3. The moveObjectBy() function changes the position of a particular object in the browser window by a certain amount every time the mouse pointer rolls onto and then off the link.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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