Have you ever wanted to change images on clicking of this image well it is very possible Take a look below

Code:
<!DOCTYPE html>
<html>
<body>
<img id="myImage"
onclick="changeImage()" src="wcoders.jpg" alt="My me">
<script>
function changeImage() {
var image=document.getElementById('myImage');
if (image.src.match("newimg")) {
image.src="myimg.jpg";
} else {
image.src="newimg.jpg";
} 
}
</script>
</body>
</html>

[text] <!DOCTYPE html>
<html>
<body>
<img id="myImage"
onclick="changeImage()" src="wcoders.jpg" alt="My me">
<script>
function changeImage() {
var image=document.getElementById('myImage');
if (image.src.match("newimg")) {
image.src="myimg.jpg";
} else {
image.src="newimg.jpg";
}
}
</script>
</body>
</html>[/text]

In case you have an affiliate link eg http://mylink.com/aff=myaffid this can be extremely useful simply change onclick to onload
Good luck :)