|
Posted by laurence on June 9, 2005, 9:20 am
Please log in for more thread options
> laurence wrote:
>
> [question about the newer format for the contents of the MAP element]
>
> It lets you provide a single set of navigation elements *as* a single set
> in your content while presenting them in two alternative ways, each
> preferred by a particular set of users. See
>
> http://www.gavelcade.com/tests/imagemaps.html
>
> The idea is that you present your navigational elements in an accessible,
> text-based format, but that by wrapping them in a MAP element, you are
> making them available for *reuse* as an image map for those users who will
> benefit from one.
That's great Harlan, thanks. This dual use of the links is apparently not
supported in MSIE, but works a treat in Firefox. Good info, and great
example.
> A thought occurred to me, that they ought to have done the same thing with
> <map name="..."> that they did with <a name="...">, that is, make it
> unnecessary. Instead of requiring
>
> <img ... usemap="#mymap">
> <!-- ... -->
> <map name="mymap" ...>
> <div ...>
> <!-- ... content ... -->
> </div>
> </map>
>
> they ought to have made it possible to write
>
> <img ... usemap="#mymap">
> <!-- ... -->
> <div id="mymap" ...>
> <!-- ... content ... -->
> </div>
>
> because the MAP tag serves no real purpose.
Could it be that maps will not always contain renderable content (apart from
hotspots on image/object), and so should not then make their presence felt
on a page in the form of a div?
Also, maps can be used by more than one image; their location in a div, at
some particular page location doesn't make much sense.
In experimenting with your code, I found that adding <area> elements to the
map (for it is decreed you can mix these elements within a map) appear to
cancel out the A regions in Firefox. Only the AREA regions work as
hot-spots. Interesting.
Thanks for the explanation Harlan,
and thanks to other contributors too.
Now, if only someone would enlighten me as to style being applied to map &
area tags...
Laurence.
|