Click to See Complete Forum and Search --> : Working with iFrames


kaygdanimal
12-04-2005, 01:45 AM
I have my menu buttons that open a subpage in an iFrame. Each subpage has it's own page header to go along with it.

Is it possible to not only link the button to each webpage but to also link the page header cell to update with the correct page header image?

For example, I have a button linked to my home.htm page and when clicked, it displays the home.htm page in the iFrame (titled "main"). Above the iFrame is the page header that displays an image. When I click on the Home button, I not only want it to display the home.htm in the iFrame, but also update the page header with home_header.gif.

Consequently, when you click on the Design button, I want it to display the design.htm page in the iFrame as well as change the page header from home_header.gif to design_header.gif.

Am I reaching too far here? Reason I ask is because my first website: http://members.cox.net/fsuanimal I had to create each individual page to display the correct header. So instead of having just index.html has my main page, I have several pages that reload the whole template. I would like to get away from having to create individual pages with my template. I would like to create just one page so the template only has to load once.

ray326
12-04-2005, 01:58 AM
You can change the header using Javascript but that won't work for every visitor.