I have a image-hyperlink. And I want to change the image when the link have status visited. Could you show me how to do it? Preferably without using JavaScript.
I'm trying to do the following: I joined both my images in single common image and here is my code:
<a href="#" class="mylink">
<img src="common_image.jpg" width="240px" height="240px"/>
</a>
And my styles:
.mylink {
width: 120px;
height: 240px;
display: block;
overflow: hidden;
}
.mylink:visited img {
margin-left: -120px;
}