Hi,
I would like to change 2 frames with one click on a link. I was suggested to use the following code
<script language=javascript>
function change(frameName,url)
{
var t = parent.[frameNumber];
t.self.location.href=url;
}
</script>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"test.html" target="main" onClick="change('1','test2.html')">test</a>
but I don't know a lot about JavaScript and that's why I don't really know how to expand the code for two frames.
I would like to look it something like this:
The link:
<a class="2" href=http://www.webdeveloper.com/forum/archive/index.php/"home.html" target="main">Home</a>
in frame nr.2 it should open foto.html
in frame nr.3 it should open fotomenu.html
Could someone please show me how the code should look like incorporating the above frames and .html.
Thanks a lot
Pir
PS: target=main(=2 frame), so I guess I will have to take that one out of the a href,won't
I would like to change 2 frames with one click on a link. I was suggested to use the following code
<script language=javascript>
function change(frameName,url)
{
var t = parent.[frameNumber];
t.self.location.href=url;
}
</script>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"test.html" target="main" onClick="change('1','test2.html')">test</a>
but I don't know a lot about JavaScript and that's why I don't really know how to expand the code for two frames.
I would like to look it something like this:
The link:
<a class="2" href=http://www.webdeveloper.com/forum/archive/index.php/"home.html" target="main">Home</a>
in frame nr.2 it should open foto.html
in frame nr.3 it should open fotomenu.html
Could someone please show me how the code should look like incorporating the above frames and .html.
Thanks a lot
Pir
PS: target=main(=2 frame), so I guess I will have to take that one out of the a href,won't