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

Chapter TWELVE. Controlling Documents wi... > TIP 103: Fun with Buttons

TIP 103: Fun with Buttons

Who said buttons have to be boring! In Tip 97, you saw how to construct a basic button, and in Tip 98, you learned how to customize the button's appearance. You can also use buttons for visual effects such as showing and hiding content in a document. For example, you may have a street map, and when the user moves the pointer over certain areas on the map an image of a landmark pops up, as in the example in this tip. When the pointer is moved away from the button area, the image disappears. It isn't magic—it's interesting programming using a push-button process.

Rollover Image Tips

Using buttons in the way described in this tip can greatly enhance a visual document. Keep these things in mind:

  • When you are building several buttons, complete one pair and then use the Create Multiple Copies method described in Tip 102 to quickly build the remaining pairs. You then can customize each pair as required.

  • Changing the size of the image button changes the size of the image. In the first example, the image used as a rollover is small; the one used in the second example is much larger since the button is sized much larger.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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