Hallo, kann mir bitte jemand eine Bewertung meiner ScriptAnpassung geben ?
es geht um das Script > http://www.starhtml.de/frameset.htm
ich habe versucht dieses Script für mein BAU-WEB anzupassen
dazu meine Frage > ist das so OK oder verfolge ich einen fehlerhaften Ansatz ?
angepaßt werden soll es an das WEB > http://www.hochbau-planung.de
dieses WEB besteht aus 2 Frames > BannerFrame + HauptFrame
_______________________________________________________________
"Master"-Seite / Frameset-Page > Name > index.htm
der HTML-Code dieser index.htm (nur zur Information, hier habe ich nichts verändert);
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>HOCHBAUBÜRO SCHMIDT, BauPlanung, BauBeratung, BauBetreuung</title>
<meta name="author" content="Peter Schmidt" />
<meta name="publisher" content="Peter Schmidt" />
<meta name="copyright" content="Peter Schmidt" />
<META name="y_key" content="f59bcef22ff6df5b" />
</head>
<frameset rows="205,*" framespacing="0" border="0" frameborder="0">
<frame name="Navigationsframe" scrolling="no" noresize target="Hauptframe" src="bannerframe.htm" marginwidth="0" marginheight="0">
<frame name="Hauptframe" src="hauptframe.htm" scrolling="auto" marginwidth="0" marginheight="0" target="hauptframe">
<noframes>
<body topmargin="0" leftmargin="0">
<p>Diese Seite verwendet Frames. Frames werden von Ihrem Browser aber nicht
unterstützt.</p>
</body>
</noframes>
</frameset>
</html>
_____________________________________________________________________________
Banner-Frame = der NavigationsFrame > bannerframe.htm
der HTML-Code dieses BannerFrames mit dem eingearbeiteten JavaScript;
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>bannerframe</title>
<base target="Hauptframe">
<!--
function Jump() {
if (top.location.search!="") {
var Size=top.location.search.length;
var Address=top.location.search.substring(1,Size);
if(document.images)
top.hauptframe.htm.location.replace(Address);
else top.hauptframe.htm.location.href=Address;
}
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="205">
<tr>
…
</tr>
</table>
<onLoad="Jump()">
</body>
</html>
das script 2 wird nur 1x und zwar hier beim BannerFrame angewendet
_______________________________________________________________________
HauptFrame = der InhaltsFrame > hauptframe.htm
der HTML-Code dieses HauptFrames mit dem eingearbeiteten JavaScript;
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>hauptframe</title>
<base target="hauptframe">
<!--
function FramesetTest() {
if (top.frames.length==0) {
Address="index.htm?hauptframe.htm";
if(document.images) top.location.replace(Address);
else top.location.href=Address;
}
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF" background="images-gesamtweb/hintergrund-images/9fotos_1005x705-85-prozent.jpg">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#0000FF" width="100%" id="AutoNumber1" ><tr>
….
</tr>
</table>
<onLoad="FramesetTest()">
</body>
</html>
dazu ist zu bemerken;
a) beim BAU-WEB sind alle drei Dateien im gleichen Ordner bzw auf dem HauptPfad (HauptRoot)
gesonderte PfadAngaben sind also nicht erforderlich
b) dieses script 1 muß dann bei jeder einzelnen WebSite,
die im HauptFrame erscheint
in den head eingetragen werden > ???
c) incl gleichzeitig die Zeile <onLoad="FramesetTest()"> in jeden body dieser einzelnen Seiten
gruss + dank
peter