
a rectangular hotspot over the logo portion of the banner image. The hotspot links to the home page. Figure 17-21. A hotspot over the logo in the banner links to the home page TIP The best hotspots are the obvious ones: the parts of the image that look clickable, like a logo. If you create a hotspot in an obscure place on the image, don't be surprised if your visitors can't guess where to click. 17.5.3. Making Control Buttons for a Flash Movie Here's a clever trick for the Flash fanatics among us. By way of Dreamweaver behaviors, you can insert buttons that control the playback of a Flash movie. Here's what you need: A Flash movie Button images for any or all of the following: Play, Stop, Rewind, Forward Start by choosing an insertion point in the document window. Then go to the Insert panel, and click the Table object. What you want to do is create a table that holds the Flash movie and the control buttons, just to keep them together as a unit. If you're against using tables in this way, you don't need the table to make the buttons work, but your design may be less elegant. In the Table dialog box, specify a table with two rows and one column, as Figure 17-22 shows. The border, padding, and spacing values are up to you. Click OK to insert the table. Figure 17-22. Creating a table to house the Flash movie and its control buttons TIP To center the table in its area, select the table, and choose Center from the Align menu on the Property Inspector. Click inside the top cell of the table, and insert the Flash movie. Go back to the Property Inspector to supply a brief but descriptive identifier for the movie and to uncheck the Loop and Autoplay options, as shown in Figure 17-23. Figure 17-23. Setting the properties of the Flash movie object Now click in the bottom table cell and insert the button images, as Figure 17-24 shows. If you use a method that asks for a link destination, such as the Insert Rollover dialog box, supply the hash sign (#) to create a self-referential link. When you finish, position the buttons as you prefer and give them self-referential links (if they don't already have them). Select each button in turn, and type the hash sign in the Link field of the Property Inspector. Figure 17-24. Insert the button images in the bottom cell TIP A self-referential link reloads the top of the current page, which may cause problems if the Flash movie and its control buttons appear below the fold. To prevent the browser from jumping all over the place, try one of these solutions: insert a named anchor just before the Flash movie, and use it as the destination of the control buttons; or create a dead JavaScript link instead of a self-referential link by typing javascript:; (including the colon and the semicolon). Select the first button in the document window. Then go to the Tag Selector, and click the <a> tag to select the button's link. Your next stop is the Behaviors