home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 February / Macworld (1998-02).dmg / Shareware World / Info / Apple Wizards November 1997 / Apple Wizards 1997 - November / Apple Wizards 1997 - November.rsrc / TEXT_138.txt < prev    next >
Encoding:
Text File  |  1997-11-08  |  4.7 KB  |  97 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. Hot On The Trail of the Image Map
  15.  
  16. Many of the web sites that you may visit on the internet today use Image Maps to help in the navigation of the web site. Before the days of Image Maps, web designers and developers relied on simple HTML text for navigation or created single images for each and every section to which the user could go within the site. Today, that practice is not very popular, thanks to Image Maps.
  17.  
  18. Basically, there are two types of Image Maps ‚Äî
  19. Server-Side and Client-Side. Server-Side Image
  20. Maps were the first available type of Image Maps
  21. but were slow because it relied on a script located
  22. on the host machine. Today, the most-often used 
  23. style is the Client-Side Image Map, which is
  24. faster and easier to create than Server-Side Image
  25. Maps, and requires little or no help from experts.
  26.  
  27.  
  28. Quick-n-Dirty Tour
  29.  
  30. The first item needed to create your image map is of course the image itself. To get things started, we will use the image below to set up the needed navigation to go to other pages within our web site.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. Each element ‚Äîthe square, triangle and circle ‚Äî shall act as a separate link to its own page. When a user passes his or her mouse over these objects, this will be indicated. Clicking on each image will take the user to a different page. Keep in mind that this is a whole image, not three individual images as one might think.
  38.  
  39. The next thing you need to do is download the best image-mapping ¬†
  40. utility available for the Macintosh, called Mapper by Nisseb Software
  41. at http://www.calles.pp.se/nisseb/mapper.html. This handy little
  42. shareware utility will make the task of creating the Client-Side Image Map a breeze, thus saving much time compared to creating one by hand. It works by coordinating X and Y points on the image using a graphics-style application.
  43.  
  44. Using Mapper is fairly straight-forward, and the application has built-in help (accessed via the Apple Menu) available so that you can instantly find information regarding the in's and out's of Mapper.
  45.  
  46. Once you open Mapper, you will see the tool palette that you will use to "trace" your images to define the coordinates.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. The tools you have available are the "Square," "Circle," "Point-to-Point," and "Freehand." The next thing to do is "trace" your images. In our example, the first image would require use of the "Square" tool. Simply select the "Square" tool, and drag it over your image, and create the area you wish to be active. You don't have to be perfect, just close enough to enclose all the area that you need. Then, in the text box, type in the address (URL) that you want the square to send the user to. For example, I would input square.html. That link is now defined. Then simply select the tool you wish to use on the next image, and repeat the process for each of the images. It's that simple. 
  55.  
  56. After you have "traced" all the images that you wish to be active, simply save the map file on your hard disk, and open it in your favorite HTML editor, such as BBEdit Lite at http://www.barebones.com/.
  57.  
  58.  
  59. Some Assembly Required... (well, not that much)
  60.  
  61. The output of our above example would look something like this:
  62.  
  63. <IMG SRC="images.gif" USEMAP="#html_map" HEIGHT="56" WIDTH="312">
  64. <MAP NAME="html_map">
  65. <!-- Created with Mapper 1.0, http://www.calles.pp.se -->
  66. <AREA SHAPE="circle" COORDS="284,27,26" HREF="circle.html">
  67. <AREA SHAPE="polygon" COORDS="123,51,158,2,194,51,123,51" HREF="triangle.html">
  68. <AREA SHAPE="rect" COORDS="8,1,60,52" HREF="square.html">
  69. </MAP>
  70.  
  71. Basically, that's it. It looks good and you're ready to use the Image Map in one of your web pages. This isn't nearly as hard as doing it the old-fashioned way. Once you create and begin using image maps, you'll wonder why you never did before!
  72.  
  73.  
  74.  ¬†   Hot Tip
  75.  
  76. To help you along even further in the creation of your image map, use Mapper's other useful function, the HTML Source output. The above example shows the IMG SRC in red, and that information can be obtained by selecting HTML SOURCE... from the Object Menu in Mapper. Simply select Copy from the dialog box, paste it in your HTML document, and you're done. What could be simpler than that?!?
  77.  
  78.  
  79. Le Colophon
  80.  
  81. These are just some of the many ways you can add a bit more life to your new or existing website. Experiment with these tips to produce just the right look for your site. 
  82.  
  83. If you are interested, you can visit my personal website at
  84. http://junior.apk.net/~rjl/ and take a look at some of my current work.
  85. Also, if you or anyone you know is looking to have a website created or re-done, I can help you create an award-winning site. Contact me at rjl@apk.net to make your dreams a reality.
  86.  
  87.  
  88. ¬†     robert j. la follette
  89.         rjl@apk.net
  90.         http://junior.apk.net/~rjl/
  91.  
  92.  
  93.  
  94.    
  95.  
  96.  
  97.                                           http://www.applewizards.net/