W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] [html5] HTMLMapElement.images

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Wed, 14 Jun 2006 09:05:42 +0200
Message-ID: <20060614090542.ekmcys244l0gcogs@webmail.annevankesteren.nl>
Quoting Ian Hickson <ian at hixie.ch>:
> On 6/13/06, Anne van Kesteren <fora at annevankesteren.nl> wrote:
>> Before I forget about this hereby a proposal to give the
>> HTMLMapElement interface a new (readonly) member called `images` or
>> equivalent representing an HTMLCollection consisting of
>> HTMLImageElement and HTMLObjectElement (and perhaps
>> HTMLCanvasElement?) elements that use that image map definition.
> What's the use case?

Basically finding the position of the associated image elements so  
that you can show "popups" and so more easily without hardcoding that  
a particular image belongs to that map and vice versa.


... has a nice example (works in Internet Explorer only).

Anne van Kesteren
Received on Wednesday, 14 June 2006 00:05:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC