Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DIVs anstatt von Layers in NS 6

Empfohlene Antworten

Veröffentlicht

Hi Leute, hab ein Problem, ich benutze in meine Seite verschiedene Divs, die mit dem Style, gezeigt oder nicht gezeigt werden. Weiss jemand wie ßich von den DIVs unter NS6 auf diese Property zugreifen kann.

Für ie habe ich

document.all['DIVNAME'].style.visibility = "hidden"; or "visible"

Für ns4 habe ich

document.layers['DIVNAME'].visibility = "hidden";or "show"

Danke ;)

Hoi,..

der Netscape 6 und IE 5.x unterstützen nach dem W3C die Funktion "getElementById".

Also einfach so:

// W3C (u.a. NN 6.x)

document.getElementById("divID").style.visibility = "hidden";

//NN 4.x

document.layers["divID"].visibility = "hidden";

//IE 4

document.all["divID"].style.visibility = "hidden";

Original geschrieben von echt

Für ns4 habe ich

document.layers['DIVNAME'].visibility = "hidden";or "show"

muss das nicht "hide" heißen?

für NS6/Gecko schau doch mal auf der website von Netscape nach.

gruss

matze

Original geschrieben von lapso

muss das nicht "hide" heißen?

Nein,.. hidden ist schon korrekt. Und für NN 6 funktioniert getElementById ;)

Original geschrieben von BigMac

Nein,.. hidden ist schon korrekt. Und für NN 6 funktioniert getElementById ;)

Ist es nicht, nicht für NC 4.x-Layers. Es mag sein, dass Netscape der Kompatibilität wegen auch "hidden" implementiert hat, aber grundsätzlich muss ein NC4.x-Layer mit "hide" und "show" bedient werden.

siehe auch

SelfHTML8/javascript/objekte/layers.htm#visibility

Gruss Matze

  • 3 Wochen später...
Original geschrieben von BigMac

Nein,.. hidden ist schon korrekt. Und für NN 6 funktioniert getElementById ;)

dankeschön, funktioniert schon prima :D

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.