posted 7 years ago
Hello, I have the following question on what I am trying to do in javascript.
On a page I am using an image as part of a link...
<A HREF="testpage.html"><img src="images/not_visited_yet.jpg" border="0" ></A><br>
similar to how you can change a link to a different color once a user has visited that link, I would like to change images so that once the link has been visited the first time, it uses this...
<A HREF="testpage.html"><img src="images/already_visited.jpg" border="0" ></A><br>
I am relatively new to javascript so I am not sure if this is very simple or hard to do. I know using just html it's pretty trivial to display links that have already been visited in a different color. In this case however I want to display a different image.
I did check the tutorial I am using but I couldn't find any thing that explicitly showed how to do this.