I am working on this site which uses the iframe, which can be viewed here:


The iframe has actually been used on cv and portolio pages only. Once you go to CV page and click on one of the links in the CV you are taken to the portfolio page of the particular project. However the header image remains of the CV page. How can I make this image change into the porfolio one?

I had a similar problem in the past and used the following java script code within the link:


However this time I am using a style sheet to display the image in the table cell, which has got the class asigned to it called "toppic"

td.toppic {
background-image: url(images/img_portfolio_top.jpg);
background-repeat: no-repeat;

How to make it work using CSS?