[Javascript] changing all images except this

David Dorward david at dorward.me.uk
Fri Feb 24 06:43:41 CST 2006


On Fri, 2006-02-24 at 13:17 +0100, Michael Borchers wrote:
> at the moment all my images have the same id="mode".
 
> how do i count them?

First change their ids - an id must be unique in a document. Giving
multiple elements the same id will break stuff. Use a class instead.
Then take a look at the document.images collection.

-- 
David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
                             -- The Greatest Show in the Galaxy



More information about the Javascript mailing list