Crusher-ScT-
Guest
Hallo,
ich will mit einem Link 2 iframes innerhalb der aktuellen Seite neu laden.
folgender Code:
JavaScript:
Der Aufruf:
Layout mit Hilfe von Tabellen und 2 iframes:
Beim Anklicken passiert gar nichts. Habe es auch mit self.frames[x] versucht und window.frames[x] ... aber funktioniert nicht.
Was mache ich falsch?
Viele Grüße
Crusher
ich will mit einem Link 2 iframes innerhalb der aktuellen Seite neu laden.
folgender Code:
JavaScript:
Code:
function ZweiFrames(URL1,F1,URL2,F2)
{
parent.frames[F1].location.href=URL1;
parent.frames[F2].location.href=URL2;
}
Code:
<a href="javascript:ZweiFrames('sportangebot2.html',[B]sublinks[/B],'sportangebot1.html',[B]content[/B])">Sportangebot</a>
Code:
<table>
...
<td>
<iframe src="topframe5.html" name="[B]sublinks[/B]" width="800" height="20"></iframe>
</td>
...
<td><iframe src="news.htm" name="[B]content[/B]" width="615" height="410"></iframe>
</td>
Beim Anklicken passiert gar nichts. Habe es auch mit self.frames[x] versucht und window.frames[x] ... aber funktioniert nicht.
Was mache ich falsch?
Viele Grüße
Crusher
