Einzelnen Beitrag anzeigen
Alt 01.07.2004, 16:26   #12
ruffy_mike
Inventar
 
Registriert seit: 10.12.2001
Ort: Wien
Alter: 44
Beiträge: 2.651


Standard

<html>
<head>

<title>abc</title>

<script type="text/javascript">
<!--

var cookie = 1;

function wechsleFrames(wert)
{
if(wert==1)
{
parent.frame1.document.location = "test.html";
parent.frame2.document.location = "test.html";
parent.frame3.document.location = "test.html";
}
if(wert==2)
{
parent.frame1.document.location = "test2.html";
parent.frame2.document.location = "test2.html";
parent.frame3.document.location = "test2.html";
}
}
//-->

</script>

</head>

<frameset cols="*,450,*" onLoad="wechsleFrames(cookie)">
<frame name="frame1" src="about:blank">
<frame name="frame2" src="about:blank">
<frame name="frame3" src="about:blank">
</frameset>

</html>
------------------------------

Soda in etwa...

Standardmäßig lädt die Datei also 3 leere Seiten (about:blank - unbedingt zusammenschreiben!). Wichtig ist das fettgedruckte onLoad="....". Hier musst du den entsprechenden Wert eintragen. Ich habe in dem Fall 'cookie' definiert.

Auf cookies kann man per document.cookie zugreifen.

Hoffe, das hilft weiter!
____________________________________
If the milk turns out to be sour, I ain't the kinda pussy to drink it.

"Every time I see an Alfa Romeo go by, I tip my hat" - Henry Ford
ruffy_mike ist offline   Mit Zitat antworten