dorayme schreef:
Yes, of course.
i was looking for some javascript snippet using parent and all that, but
your suggestions is frankly much more straightforward.
Thanks a lot.
Sybolt
Wait - just for completness ... I theef it from german's selfhtml.org:
http://www.validome.org/doc/HTML_ge/javascript/beispiele/zweiframes.htm
I did not think about it at all.
I just used 'search&replace' in DW to change it to english
<html>
<head>
<title>Changing two Frames simultaniously</title>
</head>
<frameset cols="180,*">
<frame src="twoframes_left.htm" name="left">
<frameset rows="180,*">
<frame src="twoframes_to.htm" name="top">
<frame src="twoframes_tu.htm" name="bottom">
</frameset>
</frameset><noframes></noframes>
</html>
<html>
<head>
<title>Two frames - Links</title>
<script type="text/javascript">
function ChangeFrame (URI, Framename) {
parent[Framename].location.href = URI;
}
function TwoFramesBack (Framename1, Framename2) {
Frame2 = parent[Framename2];
parent[Framename1].history.back();
if (!window.opera)
window.setTimeout("Frame2.history.back()", 100);
}
function TwoFramesForward (Framename1, Framename2) {
Frame2 = parent[Framename2];
parent[Framename1].history.forward();
if (!window.opera)
window.setTimeout("Frame2.history.forward()", 100);
}
</script>
</head>
<body bgcolor="#EEEEEE" link="#AA5522" vlink="#772200"
alink="#000000">
<div>
<hr noshade="noshade" size="1">
<a href="javascript:TwoFramesBack('top', 'bottom');"><b>zurück</b></a>
<b>|</b>
<a href="javascript:TwoFramesForward('top', 'bottom');"><b>vor</b></a>
<hr noshade="noshade" size="1">
</div>
<h2>Links</h2>
<p>
<a href="twoframes_tu.htm" target="bottom" onclick="ChangeFrame
('twoframes_to.htm', 'top')"><b>Welcome</b></a>
<br>
<a href="twoframes_su.htm" target="bottom" onclick="ChangeFrame
('twoframes_so.htm', 'top')"><b>Susan Sarandon</b></a>
<br>
<a href="twoframes_ju.htm" target="bottom" onclick="ChangeFrame
('twoframes_jo.htm', 'top')"><b>Jack Nicholson</b></a>
</p>
</body>
</html>