hein: das Script funktioniert nur mit IE und nicht mit Mozilla :o(

Beitrag lesen

ok, wunderbar - du hast es versucht. vom prinzip her ist nicht mehr viel zu ändern gewesen. ich habe an entpr. stellen einen kommentar gepackt. in meinem mozilla 1.5 läuft das jetzt genauso wie im ie, gib mal bescheid wie es bei dir aussieht ...

<html>
<head>

<script language=javascript>

var showbox = "1";

if (showbox) {
  var ende = false;
  var pop;

function MMSetup() {

/* du greifst auf das div "popup" zu, nicht auf "fenster" */
    pop = document.getElementById("popup").style;
    document.onmousemove = MovePopup;
    MovePopup();
  }

function MovePopup() {
    if (!ende) {
      pop.top = document.body.scrollTop-30;
      pop.height = document.body.style.height+30;
    }
  }

function pms_close() {
    ende = true;
    pop.visibility = "hidden";
  }

window.onscroll = MovePopup;
}
</script>
</head>

<!-- diese winopen()-funktion öffnet noch etwas anderes, oder? für
dieses script ist sie wohl nicht nötig -->
<body topmargin="0" leftmargin="0" onload="winopen()">

<div id="popup" style="left: 0px; position: absolute; top: -150px; height: 0px" width="100%">

<!-- tabelle benötgt keine id, liegt ja im <div>-container "popup" -->
<table height="100%" width="100%">
  <tbody>
  <tr>
    <td align=middle>
      <table cellspacing=1 cellpadding=4 width=400>
      <tbody>
        <tr>
          <td>Hallo Leute</td>
        </tr>
 <tr>
          <td><br><center>Herzlichen Wilkommen !</center><br><br>
            <!-- kommt hier noch was rein? sonst kann die doch weg, oder? -->
            <table cellspacing=0 cellpadding=0>
              <tbody>
       <tr>
              </tr>
              </tbody>
            </table>

<table width="100%">
              <tbody>
              <tr>
                <td align=middle width="50%">
                  <table cellspacing=1 cellpadding=3 width=150 bgcolor=#555555>
                    <tbody>
                    <tr id=title bgcolor=#dbdbdb>

<!-- hier fehlte eine apo am ende des link -->
                      <td align=middle><a href="Seite1.php">Ja</a></td>
                    </tr>
                    </tbody>
                  </table></td>
                <td align=middle width="50%">
                  <table cellspacing=1 cellpadding=3 width=150 bgcolor=#555555>
                    <tbody>
                    <tr id=title bgcolor=#dbdbdb>

<!-- wo kommt das </font> her? -->
                      <td align=middle><a href="javascript:pms_close()">Schließen</a></b></font></td>
                    </tr>
                    </tbody>
                </table>
              </td>
            </tr>
            </tbody>
        </table>
      </td>
    </tr>
    </tbody>
  </table>
  </td>
  </tr>
  </tbody>
</table>
</div>
<script language=javascript>MMSetup();</script>

</body>
</html>