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

Hour 14. Graphical Links and Imagemaps > Combined Client/Server Imagemaps

Combined Client/Server Imagemaps

There is a way for you to provide client-side imagemaps that automatically switch to server-side imagemaps if the user's browser doesn't support client-side maps. With a single line of code, you can allow an imagemap to be interpreted either by the end user's software or by the server by including the ismap attribute in the <img /> tag, and then including both a usemap= attribute and cgi-bin/imagemap reference.

<map "#thisthat">
<area shape="rect" coords="0,0,102,99" href="this.htm" />
<area shape="rect" coords="103,0,205,99" href="that.htm" /></map>
<a href="/cgi-bin/imagemap/thisthat">
<img src="thisthat.gif" usemap="#thisthat" ismap /></a>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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