noel: iframe style dynamisch ändern

hallo,

ich hatte vor tagen schomal eine frage zu dem thema.

ich möchte einen iframe via click sichtbar /unsichtbar schalten.

ich versuche es nun via:

<a href="#"
onClick="document.getElementById('iframe').style.visibility='visible'">

IE funktioniert das, mozilla nicht.

wenn der tag soweit richtig ist, es aber einfach nicht geht in mozilla, muss ich mich wohl damit abfinden.

  1. Hi!

    Da gibt's ein Problem mit den Browser-Kompatibilitäten.
    Beim IE heißt es visibility und beim Mozilla visible (true/false).
    Da mut du wohl ne browserdetection reinbauen.
    Ansonsten probiers doch mal über "bessere" Mittel wie PHP, wenn's geht...

    cu

    Marc Reichelt || http://www.marcreichelt.de/

    --
    Linux is like a wigwam - no windows, no gates and an Apache inside!!!
    SELFCode: ss:| zu:) ls:[ fo:} de:[ va:} ch:? sh:) n4:° rl:? br:^ js:( ie:% fl:) mo:)
    http://emmanuel.dammerer.at/selfcode.html
    1. hi,

      daran liegt es nicht.
      css style visibility:hidden/visible funktioniert in mozilla. das dynamische ändern jedoch nicht.

      noel