Posts: 159
Location: Skegness, Lincolnshire, England
|
As chrishirst says there is very little point n having frames if you want to continually change the 'static' content, and yes, you will have to use JavaScript to accomplish what you are after. You can, however, do this two ways. You can combine an onClick() statement into your <a href=""> link, or you can have a JS function to do it. To combine the two in one line use:
Quote:
|
<a href="somepage.html" target="showframe" onClick="parent.frame['navigation'].location='someother_page.html'">Your link</a>
|
To use a function use:
Quote:
|
<a href="javascript:change()">Your Link</a>
|
and then include the function shown below in your JavaScript code on the page
Quote:
function change() {
parent.frame['showframe'].location = "somepage.html";
parent.frame['navigation'].location = "someother_page.html";
}
|
Use of the function rather than the inline code makes the page neater, and of course you can then have one function work all your links with a little adaptation, but I'll leave that adaptation to you 
|