Need help with a simple problem! which has the following criteria:
1) click on images link in iframe changes Parent page, click on another iframe image link changes
Change your link from this:
To this:
If you want, you could just put the onclick
handler on the image instead and get rid of the anchor.
Note that this is not the correct place to have javascript (handlers should be bound from a .js file, not in markup), but i get the feeling you are looking for a surgical answer and don't care much for best practices.
edit: as Victor Nicollet pointed out, this will throw a security exception if your iframe and parent page do not share domains. see http://en.wikipedia.org/wiki/Same_origin_policy