Hi,
ok, thanks for the link.
Your JavaScript code contains a little problem: You are accessing the image by ID and you gave all images the same ID. This however will not work, because IDs must be unique throughout the page. So, each image will need a different ID.
However, then you won’t know which image was clicked, because you are not adding it as a parameter to the “changeimage()” call.
So, what you should try: Give each image a different id, like “myimage1″, “myimage2″, and so on. In the “onclick” handler, use something like “changeimage(‘myimage1′);” as well, where the parameter is the same as the ID. Then, in the actual JavaScript function, use that parameter to change the image, instead of hardcoding it.
If that does not work, I’m afraid that you should ask in a more JavaScript related forum, e.g. in the jQuery forum.
Regards,
Tobias
