Re: What is planned for these attributes?

Arnoud (galactus@htmlhelp.com)
Tue, 09 Sep 1997 19:39:19 +0200


From: galactus@htmlhelp.com (Arnoud "Galactus" Engelfriet)
To: www-html@w3.org
Date: Tue, 09 Sep 1997 19:39:19 +0200
Message-ID: <HnYF04uYOtXf089yn@htmlhelp.com>
Subject: Re: What is planned for these attributes?

In article <341544FB.3A40A2EA@w3.org>,
Arnaud Le Hors <lehors@w3.org> wrote:
> > First, I have a JavaScript that requires the use of a NAME attribute in an
> > IMG tag. This attribute has not been included in any of the W3C DTDs as
> > yet, and doesn't appear to be in the 4.0 draft yet either.
> 
> Sorry, I don't understand what "a JavaScript that requires" means. Where
> does this piece of code comes from? 

The original poster probably referred to the fact that Netscape
makes it possible for Javascript scripts to change "properties" of
images in an HTML document. For this, the script needs to refer to
the image by some name, which the document author supplies by adding
a (non-standard) NAME attribute to the IMG element which refers to
the image.

Usually these scripts are used to change the image if you move the
mouse over them.

It seems to me that the ID attribute could be used for this, but for
some reason Netscape prefers the NAME attribute.

-- 
E-mail: galactus@htmlhelp.com .................... PGP Key: 512/63B0E665
Maintainer of WDG's HTML reference: <http://www.htmlhelp.com/reference/>