|
|
Q730 How can I swap the image in an image form element?
irt.org | Knowledge Base | JavaScript | Image | Q730 [ previous next ] Q730 How can I swap the image in an image form element?The element:
is a funny one, as IIRC it wasn't originally a valid form element in Netscape - even worse when used on the Mac. It isn't an image therefore it won't appear in the images array. It _should_ appear in the elements array - BUT you CANNOT swap elements only images. Replace the form element with a bulk standard image:
and then use normal image swapping JavaScript code to swap the image. The following was submitted by Harald Paulsen Use getElementById to find the element in question:
|
-- div -->
|