Darstellung im Netscape

Hallo,

der Netscape (7.2) ignoriert meine JavaScript für ein feststehendes Hintergrundbild:

if (document.all)
document.body.style.cssText=„background:#8C97A2 url(images/zahnrad4.gif) no-repeat fixed bottom right“

und auch ein CSS:
a:link {text-decoration:none; font-weight:bold; color:#333333;}
a:visited {text-decoration:none; font-weight:bold; color:#333333;}
a:hover {text-decoration:none; font-weight:bold; color:#CC3333;}

visited und hover gehen, aber link nicht - was kann man tun? Danke

Hallo,

der Netscape (7.2) ignoriert meine JavaScript für ein
feststehendes Hintergrundbild:

if (document.all)
document.body.style.cssText=„background:#8C97A2
url(images/zahnrad4.gif) no-repeat fixed bottom right“

document.all bezieht sich auf den IE, das funktioniert im NS nicht. verwende document.layers oder document.getElementById stattdessen.

und auch ein CSS:
a:link {text-decoration:none; font-weight:bold;
color:#333333;}
a:visited {text-decoration:none; font-weight:bold;
color:#333333;}
a:hover {text-decoration:none; font-weight:bold;
color:#CC3333;}
visited und hover gehen, aber link nicht - was kann man tun?

Hier konnte ich keinen Fehler finden, es funktioniert auch.

(funktioniert auf NS, IE, FF)




function setStyles() {
 if (document.all) {
 document.all.mainwindow.className = 'iestyle';
 } else if (document.getElementById) {
 mainwindow = document.getElementById("mainwindow");
 mainwindow.className = 'nnstyle';
 } else if (document.layers) {
 mainwindow = document.layers['mainwindow'];
 mainwindow.className = 'nnstyle';
 } 
}

.iestyle {
 background:#8C97A2 url(images/ie.jpg) no-repeat fixed bottom right;
}
.nnstyle {
 background:#8C97A2 url(images/netscape.jpg) no-repeat fixed bottom right;
}
a:link {text-decoration:none; font-weight:bold; color:#333333;}
a:visited {text-decoration:none; font-weight:bold; color:#333333;}
a:hover {text-decoration:none; font-weight:bold; color:#CC3333;}
[Testlink](%23)
setStyles();

Gruß,
Rudy

Hallo Rudy,

super - das funktioniert schon mal.

Wenn ich die link-Styles direkt in die Dateien schreibe geht es bei mir auch, also liegt es wohl an der eingebundenen Datei oder der Einbindung:

Home

Die format.css:

<!–
a:link {
text-decoration:none; font-weight:bold; color:#333333;
}
a:visited {
text-decoration:none; font-weight:bold; color:#333333;
}
a:hover {
text-decoration:none; font-weight:bold; color:#CC3333;
}
body {
scrollbar-arrow-color:#333333;
scrollbar-base-color:#CCCCCC;
scrollbar-face-color:#DBDADD;
scrollbar-highlight-color:#333333;
scrollbar-shadow-color:#333333;
scrollbar-darkshadow-color:#CCCCCC;
scrollbar-track-color:#CCCCCC;
scrollbar-3d-light-color:#FF0000;
text:#333333;
background:#8C97A2;
}
.iestyle {
background:#8C97A2 url(images/zahnrad4.gif) no-repeat fixed bottom right;
}
.nnstyle {
background:#8C97A2 url(images/zahnrad4.gif) no-repeat fixed bottom right;
}
–>

Dankeschön
Dario

da bin ich pingelig :smile: Für den Druck (media=„print“) kannst Du z.B. das Hintergrundbild weg lassen, dass nur der Text gedruckt wird.

Die format.css:

<!–
a:link {

}
–>

und haben im CSS nix zu suchen. Die richtige Art in CSS zu kommentieren ist auch nicht <!-- --> sondern /* */.

Gruß,
Rudy

1 „Gefällt mir“

hm,

das kommt davon wenn man was verwendet, was man vor Jahren mal irgendwo im Netz gefunden hat.

na jetzt gehts - ich danke dir.

5 von 5 Helferleinbienchenchenchen

ach so - die Bildlaufleisten gehen ja auch nich im Netscape - also werden nicht farbig …

kann man da auch was drehen? (Code Artikel zuvor)

ach so - die Bildlaufleisten gehen ja auch nich im Netscape -
also werden nicht farbig …
kann man da auch was drehen? (Code Artikel zuvor)

die ganzen scollbar-… CSS-Eigenschaften sind nur für den IE ab Version 5.5. Mit CSS lässt sich das für den NS nicht realisieren.

Gruß,
Rudy

alles klar - danke