Autor Zpráva
peta
Profil *
mam takovouto stranku a potreboval bych zmenit SRC "aaa.htm" u ramu s nazvem menu na treba "bbb.htm"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-language" content="sk"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
<title>:: XatChat - Napoveda ::</title>
<link rel="stylesheet" type="text/css" href="napoveda.css"/>

</head>

<frameset cols="200,*">
<frame src="indexmenu.htm" name="menu" />
<frame src="aaa.htm" name="stranka" />
<noframes>
"Nemas framy"
</noframes>
</frameset>

<body>
<script type="text/javascript">
var S_GET = new Object();
var pole = new Array();
var x = new Array(2);
var i;
pole = window.location.search.substr(1).split("&");
for (i in pole)
{
x=pole[i].split("=");
S_GET[x[0]] = unescape(x[1]);
}
i = (Boolean(S_GET['help']))?S_GET['help']+".htm":"";
if (i!=="") {parent.menu.src=i;}
//for (i in S_GET) {document.write("<br>"+i+"="+S_GET[i]);}
</script>
</body>

</html>

... vse funguje, jako JS, kdyz jsem zkousel zvlast, ale najak to neumim zapsat, aby to umelo pres indexovou stranku. Nechci to delat v PHP
adresa stranky bude treba
index.htm?help=bbb
Chtel byc to totiz vyuzit podobne, jako je delane
<a name="aaa">yyy</a>
<a href="#aaa">xxx</a>
Ale asi to dam jen jako odkaz na indexovy soubor...
Toto téma je uzamčeno. Odpověď nelze zaslat.

0