Hello,
I am working on a project to showcase jewelry on a web page. I have divided the page into two columns, with a large image on the left, and several thumbnails on the right side. When the user clicks on one of the thumbnails, the large picture is replaced with the one that matches the thumbnail. The code so far is as follows:
<a href="#" onClick="document.image1.src='<img src="600003.jpg" width="64" height="64"></a>
(on each thumbnail)
and:
<img src=" name= "image1">
(for the large image)
I would like to add a bit of code to the end of my onClick statements that would call a .txt or .htm file (or even a string in the page- I'm not too picky) and document it under the large image at the same time the large image is swapped- does anyone have any advice? Please be specific, as I am relatively new to javaScript!
Thank you,
Chiron
I am working on a project to showcase jewelry on a web page. I have divided the page into two columns, with a large image on the left, and several thumbnails on the right side. When the user clicks on one of the thumbnails, the large picture is replaced with the one that matches the thumbnail. The code so far is as follows:
<a href="#" onClick="document.image1.src='<img src="600003.jpg" width="64" height="64"></a>
(on each thumbnail)
and:
<img src=" name= "image1">
(for the large image)
I would like to add a bit of code to the end of my onClick statements that would call a .txt or .htm file (or even a string in the page- I'm not too picky) and document it under the large image at the same time the large image is swapped- does anyone have any advice? Please be specific, as I am relatively new to javaScript!
Thank you,
Chiron