When Click Link Display Image
I want an image to get displayed on a page when the user clicks on a
certain link that looks like #foo. Example
<a href="#dog">Dog</a>
<a href="#cat">Cat</a>
If the url contains #dog it will display a picture of a dog. if the url
contains #cat it will display a picture of a cat. How can this be
achieved. Then have the images be displayed in the image tag.
<img id="something" />
No comments:
Post a Comment