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

Hour 15. Creating Interactive Graphics > Adding Behaviors to Slices and Hotspot...

Adding Behaviors to Slices and Hotspots

Fireworks behaviors are actions that you can assign to slices and hotspots and that will respond to mouse events. These actions are performed by JavaScript, which Fireworks includes in the exported HTML code. JavaScript is a scripting language that can control how a browser displays elements of a Web page. You don’t have to worry about coding any JavaScript if you simply use Fireworks behaviors to do the work for you.

When a slice or hotspot is selected with the Pointer tool, a behavior handle is visible in the center of the object. You can create a simple image swap by clicking the handle of the slice or hotspot you want to use as the trigger (when the mouse rolls over) and dragging the cursor to the slice you want to use as the target, including the same trigger slice. A hotspot can be a trigger, but it can’t be a target. The target image can be swapped with an image in the same location on the Canvas in another frame. Choose the frame to be swapped with the target image from the Swap Image dialog, shown in Figure 15.4, which pops up when you assign a swap.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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