<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
|