How can I make a thumbnail <img> show a full size image when clicked?
问题 Normally you have an image tage with the src as the source of the image and the alt as the alternative text: <img src="image1.gif" alt="Image 1" /> Can you have something like is?: <img src="image1.gif" alt="image2.gif" /> So that means the src has an image source and the alt also has an image source. What I want to do is pull 2 images from flickr using the flickr api (a thumb image and a normal sized image) and when the user clicks on the thumb, the normal sized image is shown. I have tried