Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] changing all images except this


  • From: david at dorward.me.uk (David Dorward)
  • Subject: [Javascript] changing all images except this
  • Date: Fri Feb 24 06:46:23 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