Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Imagemaps
- To: tlug@example.com
- Subject: Imagemaps
- From: turnbull@example.com (Stephen J. Turnbull)
- Date: Thu, 26 Sep 96 12:20 JST
- Reply-To: tlug@example.com
- Sender: owner-tlug
To Jim S., and anybody else who's mucking about with imagemaps. I have successfully made imagemaps work (locally, haven't tried from a foreign machine yet) with both the NCSA (1.3; 1.5.2 is a-building as I type) and Apache (1.1.1) httpds. To test the NCSA imagemap, go to http://turnbull.sk.tsukuba.ac.jp/ and the imagemap is the "skinny boy" GIF at the bottom of the first screen or so. Click on the left side, and you get a little screaming alien (from Adams's Hitchhiker books' covers). Click on the right side and you end up at "InfoShako", my institute's home page. Not very useful, but who cares? Here's the relevant parts of various files. The *Root variables are from httpd.conf. The variables are of course substituted in place; the imagemap routine doesn't know anything about the variables $ServerRoot or $DocumentRoot. The <! ... > tag is a comment; compare with apache-map.html below. $DocumentRoot/index.html (ll. 33-36): <! A HREF="/maps/index-map.map"> <A HREF="/cgi-bin/imagemap/maps/index-map.map"> <IMG ISMAP ALT="" SRC="/gadgets/skinny.gif"> </A> $DocumentRoot/maps/index-map.map (all): # This map file was created with mapedit 2.25. The HREFs were *not* # created using mapedit, as mapedit munges Japanese. # # The location below $DocumentRoot is a coincidence as far as NCSA is # concerned; it makes life easier for Apache. default /gadgets/gaijin.gif #To InfoShako rect http://www.sk.tsukuba.ac.jp/ 56,30 163,176 /usr/local/etc/httpd/conf/imagemap.conf (all): # This file is used only by the imagemap CGI script (and possibly # recent NCSA HTTPds' internal imagemap function; the Apache HTTPd's # internal imagemap facility apparently ignores it, and certainly # doesn't need it). The $ServerRoot is hard-coded in the NCSA # imagemap binary to /usr/local/etc/httpd. # # Note that the leading '/' of PATH_INFO is stripped by the imagemap # CGI script, so the map path must be relative. On the other hand, # CGI scripts live in Unix space (HTTPds normally do *not* chroot), so # the reference must be absolute. maps/index-map.map: /WWW/htdocs/maps/index-map.map To try the Apache httpd, use the URL http://turnbull.sk.tsukuba.ac.jp/apache-map.html which is just a copy of index.html with the imagemap as follows: $DocumentRoot/apache-map.html (ll. 33-36): <A HREF="/maps/index-map.map"> <! A HREF="/cgi-bin/imagemap/maps/index-map.map"> <IMG ISMAP ALT="" SRC="/gadgets/skinny.gif"> </A> It uses the *identical* $DocumentRoot/maps/index-map.map, and ignores the /usr/local/etc/httpd/imagemap.conf file. Tokoro de, there is also a client-side imagemap in http://turnbull.sk.tsukuba.ac.jp/index-map.html (with munged Japanese and different functionality for the map; I didn't know how to use mapedit when it was created---jump to the end of the document source to see the client side map). If this still doesn't get you going, Jim, why don't you post the relevant files? Steve -- Stephen John Turnbull University of Tsukuba Yaseppochi-Gumi Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp/ Tennodai 1-1-1, Tsukuba, 305 JAPAN turnbull@example.com ----------------------------------------------------------------- a word from the sponsor will appear below ----------------------------------------------------------------- TLUG September 28th meeting is sponsored by Fusion Systems Japan, Inc., a global professional services firm. http://www.fsj.co.jp No. 2 Toshin Aobadai Building 9F, 3-17-13 Aobadai, Meguro-ku, Tokyo 153, Japan Tel: (03)5456-7561 Fax: (03)5458-4422 info@example.com
Home | Main Index | Thread Index
- Prev by Date: Re: September 28 meeting
- Next by Date: qustions about Apache setup
- Prev by thread: RSVP for meeting (and partial de-lurk)--PLEASE SEND ME A NOTE
- Next by thread: qustions about Apache setup
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links