mit einem klick zwei seiten öffnen

HITMAN

Mitglied
hallo!

ich möchte gerne mit einem link zwei verschiedene seiten in zwei frames laden...

ist das irgendwie möglich?

thx hitman
 
das hatten wir schon mal hrhr

einfach ne kleine funktion schreiben
und die dann aufrufen
<a href="javascript:blalbla()

und dann script blabla
function blabla()
{
parent.frame1.location=blabla1
parent.frame2.location=blabla2

}

da kan jetzt uU nen syntax error sein aber das prionzip müsstest du verstanden haben
 
sorry, aber ehlich gesagt, kann ich damit nicht wirklich viel anfangen...
ich könnte es doch auch so machen, das es zuerst die eine seite in dem ersten frame öffnet, und diese dann irgendwie (onLoad?) die zweite seite im frame zwei öffnet oder?

hab nur leider nicht wirklich ne ahnung davon... :(
 
argl *verreck*

Hi Leute,
habe nur die Seiten ersetzt und die Frame-Namen, aber Fehlermeldung kommt!
Meine Frage steht ganz unten...

Frame-Aufbau:
S Seite
S Seite
e Seite
i Seite
t Seite
e Seite

Frame-Namen:
Seite = Header
Seite = Menue
Seite = mainFrame
Seite = Logo

und hier der Quälcode:



<html>

<head>
<meta http-equiv="Content-Language" content="de">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Neue Seite 1</title>
<style>
body{ SCROLLBAR-FACE-COLOR: #0066ff;
SCROLLBAR-HIGHLIGHT-COLOR: #0066ff;
SCROLLBAR-SHADOW-COLOR: #808080;
SCROLLBAR-3DLIGHT-COLOR: #808080;
SCROLLBAR-ARROW-COLOR: #FB5200;
SCROLLBAR-TRACK-COLOR: #000000;
SCROLLBAR-DARKSHADOW-COLOR: #0066ff;
}
</style>
<base target="_self">
<script type="text/javascript">
<!--
function ZweiFrames(URI1,F1,URI2,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.location.href = URI1;
Frame2.location.href = URI2;
}
function ZweiFramesBack(F1,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.history.back();
if (!window.opera) window.setTimeout("Frame2.history.back()",10);
}
function ZweiFramesForward(F1,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.history.forward();
if (!window.opera) window.setTimeout("Frame2.history.forward()",10);
}
//-->
</script>
</head>

<body bgcolor="#CCCCCC" link="#000000" vlink="#000000" alink="#000000">

<table border="0" width="100%">
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>A<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>J<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>S<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>B<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>K<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>T<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>C<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>L<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>U<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>D<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>M<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>V<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>E<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>N<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>W<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>F<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>O<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>X<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>G<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>P<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>Y<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>H<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>Q<font color="#FF0000">---</font></td>
<td width="34%" align="center"><font color="#FF0000">---</font>Z<font color="#FF0000">---</font></td>
</tr>
<tr>
<td width="33%" align="center"><a href="javascript:ZweiFrames('Halo/Halo.htm','Header','Halo/Halo-Header.htm','mainFrame')">
<b>Susan Sarandon</b>
</a></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"></td>
<td width="33%" align="center"></td>
<td width="34%" align="center"></td>
</tr>
<tr>
<td width="33%" align="center"><font color="#FF0000">---</font>I<font color="#FF0000">---</font></td>
<td width="33%" align="center"><font color="#FF0000">---</font>R<font color="#FF0000">---</font></td>
<td width="34%" align="center"></td>
</tr>
</table>

</body>

</html>



Frame1.location.href = URI1; <-da soll angeblich (nach der meinung meines debuggers *g*) ein Fehler drinne sein... ich find nix... arg...
Ich will, dass wenn ich auf einen Link im mainFrame klicke, soll sich mainFrame und Header ändern, also in beiden soll eine neue Seite geöffnet werden! Ich hoffe ihr wisst, was Ihr tut... äh... was ich meine! :rolleyes:
Fett ReSpEcT an alle, die mir helfen können :)

Bitte bitte helft mir!
Danke!

P.S.:
:google: hat mir auch nix gebracht und :google: erst recht nix...
Bitte, ich brauche eure Hilfe!
'tschüss

LinuxDau
 
Zuletzt bearbeitet:
ich wills auch wissen

Hi leute, er hat schon recht, ich habe auch nix gefunden, obwohl ich ja eigentlich alles finde *g*
Naja, hab halt das selbe problem...
Kann mal bitte jemand schaun, warum ein Fehler erzeugt wird?
Danke!
ciao

Suchfunktion
 
hmn
den ganzen Code tu ich mir jetzt nicht an

so gehts glaubt mir ;)

<script>
function zweiframes()
{
parent.framename.location="seite1.html"
parent.framename.location="seite2.html"
}
</script>
<a href="javascript:zweiframes()">
 
ahja... ;)

Ahja, so siehts aus... *g*
Danke erstmal für deine Antwort, aber JavaScript ist bei mir so eine Sache... *g*
Ein Hölenmensch aus der Steinzeit hat mehr ahnung von C++, als ich von JS... lol...
Is so!
Mach mal ein Beispiel, wie das ganze (z.B. bei mir) aussehen müsste!
Muss man da nich irgendwoe angeben, wohin, also in welchen Frame was geöffnet wird? :confused:
Ich hoffe, mir kann irgendwer helfen...
ciao
Linux(und JavaScript)Dau

P.S:
danke schonmal für eure Hilfe!
'tschüssie
 

Neue Beiträge

Zurück