'Double linking' something to change 2 iFrames

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

I've been given a job to edit a website, what they want is for the flash not to refresh when you click another link, so I did it with frames.

When a link is clicked 2 iFrames need to be changed... the navigation and the content.

Right now I have linked like this - the button is an image:
<a href="second_navigation.html" target="iframe_name"><img src="link_button.gif"></a> and that's working fine - it loads second_navigation.html into the correct iFrame and place.

I need it to load 2 different pages into 2 different iFrames.

How I can I do this please?

So basically I want to double link something.

Thanks,
- Craig.
 
Code:
<html>
<script>
function dblLink()
{
  document.getElementById('iframe1').src = '3.html';
  document.getElementById('iframe2').src = '4.html';
}
</script>
<body>
<a href="#" onClick="dblLink();">test</a>
<iframe src="1.html" id="iframe1"></iframe>
<iframe src="2.html" id="iframe2"></iframe>
</body>
</html>
 
Back
Top Bottom