hmm thx für den tipp mit der schrift, ich war davon ausgegangen, dass jeder verdana hat.
um die noframes geschichte werd ich mihc noch kümmern, soweit bin ich noch nicht.
mir fällt grad ein anderes prob auf:
opera kommt mit dem framing javascript nicht zurecht, wenn man eine einzelne content seite aufruft, macht er zwar das frameset, und lädt die navi, aber er zeigt den content nicht an.
wenn man in der navi dann nochmal auf den entsprechenden link klickt, funzt es wunderbar.
jemand ne idee, woran des liegen könnte?
hier das js:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
function is_msie() {
return (navigator.appName == "Microsoft Internet Explorer");
}
/* Wenn nötig, Frameset und Frames erzeugen */
function Framing()
{
if (this.document == top.document ||
top.location.host != this.location.host) {
var pathprefix = location.protocol + '//'
+ location.host
+ location.pathname.substring(0,location.pathname.lastIndexOf('de/')+1);
var doctitle = window.document.title;
window.document.clear();
window.document.open("text/html");
window.document.writeln('<html>\n<head><title>Aktiv gegen ausbeuterische Kinderarbeit</title></head>');
window.document.writeln('<frameset cols="250,100%" BORDER="0" FRAMESPACING="0" frameborder="0">'+
'<frame src="menu.htm" name="menu" SCROLLING="NO">'+
'<frame src="' +top.location.href+ '" name="content" NORESIZE>'+
'</frameset></html>');
window.document.close();
return true;
}
return false;
}
/* Framing für Microsoft-Browser einleiten und anpassen */
function msieFraming() {
if (is_msie()) {
if (Framing()) {
window.setTimeout('top.frames["content"].location.href = '+'"' +top.location.href+ '";',10);
}
}
}
/* Framing für Nicht-Microsoft-Browser einleiten und anpassen */
function netscFraming() {
if (!is_msie()) Framing();
else Framing();
}
/* Framing für Microsoft-Browser aufrufen (für andere im Body-Tag mit onLoad) */
msieFraming();
|
edit: noframes bereich steht, ich hab einfach die links aus der menu.htm reinkopiert, und statt target="content" target="_blank" genommen.
das müßte sein ziel erfüllen, odeR?
mir ist grad nicht so ganz klar, wie ich das testen kann, kann man frames abschalten?
oder was für nen browser brauch ich, um das zu testen?