leonnk
Programmer
- May 1, 2009
- 11
Hi,
I am creating an image gallery and using javascript on my thumbnails to allow viewers to browse the gallery.
I have CSS classes for the thumbnails:
"Selected" and "NonSelected"
Nonselected have hover attributes and selected is enlarged.
How do I use javascript to change the class for the thumbnails (so that the thumbnail selected gets a "Selected" class and all others get a "NonSelected").
Thanks!
I am creating an image gallery and using javascript on my thumbnails to allow viewers to browse the gallery.
I have CSS classes for the thumbnails:
"Selected" and "NonSelected"
Nonselected have hover attributes and selected is enlarged.
How do I use javascript to change the class for the thumbnails (so that the thumbnail selected gets a "Selected" class and all others get a "NonSelected").
Thanks!