|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Microsoft FrontPageThe FrontPage Editor comes with an Image toolbar that activates whenever you select an image. In addition to basic image operations such as cropping, rotating, and changing contrast, buttons on the Image toolbar can also help you set up hot regions in an imagemap. The imagemap-related buttons are the first five you see on the left end of the toolbar (see Figure 4.6).
An important thing to note about FrontPages imagemap handling is that, by default, it is done using a preprogrammed page object called a bot. When you look at the code FrontPage generates to support an imagemap, you will see something like this: <!--webbot bot=ImageMap polygon= (201,163) (237,139) (303,148) (329,180) (310,208) pageone.htm rectangle= (228,309) (278, 397) pagetwo.htm circle= (281,83) 60 pagethree.htm src=map.gif alt=map.gif (18273 bytes) align=right width=600 height=380 --> This is a call to the FrontPage Imagemap bota piece of executable code that resides on a FrontPage-compliant Web server. If youre not using a FrontPage-compliant server, this code wont do you or your visitors any good. Fortunately, you can instruct FrontPage to write client-side imagemap code instead by performing these steps:
This tells FrontPage that it should not use the Imagemap bot, and the code you find in your HTML files should be consistent with the HTML standard for client-side imagemaps. After you have loaded an imagemap graphic, you can select the Rectangle, Circle, or Polygon tool by clicking its button on the toolbar. When using the Rectangle tool, click the upper-left corner of the rectangular hot region and then click the lower-right corner. As you move from upper left to lower right, a rectangular trace will be dragged across the hot region. After you click the lower right, you will see the Create Hyperlink dialog box shown in Figure 4.7. Here you can enter the URL to be associated with the hot region.
The FrontPage Circle tool works much the same as Mapeditsclick at the center of the circle, move the mouse pointer to a point on the edge of the circle, and then release the mouse button to open the dialog box you saw in Figure 4.7. To use the FrontPage Polygon tool, click the first vertex of the polygon, followed by each of the other vertices, until you hit the last one. Then click again on the first vertex and the URL box will appear.
Live ImageLive Image is an easy-to-use imagemapping tool for Windows 95 and Windows NT. If you have used a program called Map This! in the past, Live Image may seem very familiar. Indeed, Live Image is an enhanced version of Map This!, but the enhancements come (literally) with a price. A single-user license for Live Image will set you back $29.95. Figure 4.8 shows the Live Image interface. The large area on the right side of the window is where the imagemap graphic loads. On the left is a listing of the hot regions you have defined. You can drag the separator bar between the two sides to a new position, if you want to change the size of either.
Live Images interface is very intuitive, particularly those buttons you use to create hot regions. Just click the button corresponding to the shape of the hot region you want to define, and then trace the hot region with your mouse. When you finish, you will see a dialog box like the one in Figure 4.8 prompting you for a URL, a target frame, and any comments you want to associate with the region. Note also that hot regions are shaded on the graphic. You also receive a lot of extras in Live Image that you dont receive in other imagemap programs. In addition to being able to zoom in and out on the graphic, for example, you can also set up a grid over the image to assist you with very precise hot region traces. You can control the fineness of the grid, and you can even have points in your hot region trace snap to the grid. Live Image enables you to test an imagemap in two ways. The first is through a simulated browser built into Live Image. When you test this way, you move your mouse pointer over the imagemap graphic and you will see URLs show up at the bottom of the screen as you pass over a hot region. The second way is to load the HTML file that Live Image produces into a actual browser and test it there. Some of the other distinguishing features of Live Image include the following:
Although you do have to pay a small amount of money for Live Image, you get quite a lot in return. You can learn more about Live Image by visiting http://www.mediatec.com/.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |