gustav: verschiedene Positionierung von popup bei IE und Mozilla

Beitrag lesen

Hallo,

ich möchte daß beim Anmelden aus der Datenbank gelesen wird und wenn es sein muß auf dem Bildschirm darauf aufmerksam gemacht wird. Und mein Code sieht wiefolgt aus:

<?
if ($test==1) {
?>

<html>
<head>

<link rel="STYLESHEET" href="style.css" type="text/css">

<?include("kopf.php")?>

</head>
<body  topmargin="0" leftmargin="0">

<?
}
else {

?>

<html>
<head>

<link rel="STYLESHEET" href="style.css" type="text/css">

<?include("kopf.php")?>
<SCRIPT language=JavaScript>
var showbox = "1";

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

function MMSetup() {
  pop = document.getElementById("popup").style;
  document.onmousemove = MovePopup;
  MovePopup();
 }

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

function pms_close() {

ende = true;
  pop.visibility = "hidden";
 }

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

<body>
<DIV id=popup style="LEFT: 0px; POSITION: absolute; TOP: -250px; HEIGHT: 0px" width="100%">

<TABLE height="100%" width="100%">
  <TBODY>
  <TR>
    <TD align=middle>
      <TABLE cellSpacing=1 cellPadding=4 width=400 bgColor=#555555>
        <TBODY>
        <TR>
          <TD id=title align=middle bgColor=#111111><FONT
            face="Verdana, Arial, Helvetica, sans-serif" color=#bbbbbb
            size=2><B>Bitte Lesen !</B></FONT> </TD></TR>
        <TR>

<?
  $sql_achtung="SELECT achtungID from achtung WHERE empfaengerID=".$userID." And neu='1'";
  $achtung=mysql_query($sql_achtung,$conect);
  if($anz==1)
  $nach="Mitteilung";
  else
  $nach="Mitteilungen";
  ?>

<TD id=tableb bgColor=#DBDBDB><FONT
            face="Verdana, Arial, Helvetica, sans-serif" size=1><B><FONT
            size=2><? echo "<br><b><center>Sie haben ".$anz." neue ".$nach." !</center>";

while($achtung2=mysql_fetch_array($achtung)) {
$update_achtung2="UPDATE achtung SET neu='0' where achtungID=".$achtung2["achtungID"];
$update_achtung2_query=mysql_query($update_achtung2,$conect);
}
   ?></B></FONT></B></FONT> <BR><BR>
            <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>

<?

$sql1="Select achtungID from achtung where empfaengerID=".$userID." And nSpeichern='0' order by nachrichtID DESC";
      $res1=mysql_query($sql1,$conect);
      $Nach=mysql_fetch_array($res1);

?>

<TD align=middle><FONT
                        face="Verdana, Arial, Helvetica, sans-serif"
                        color=#bbbbbb size=2><B><A
                        onmousedown="status='Zu den Mitteilungen...'; return true;"
                        onmouseover="status='Zu den Mitteilungen...'; return true;"
                        title="zu den Mitteilungen..."
                        style="TEXT-DECORATION: none"
                        onmouseout="status=''; return true;"
                        href="mitteilungen.php?action=1&idN=<? echo $Nach["mitteilungen"]; ?>">Mitteilungen</A></B></FONT>
                      </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>
                      <TD align=middle><FONT
                        face="Verdana, Arial, Helvetica, sans-serif"
                        color=#bbbbbb size=2><B><A
                        onmousedown="status='Dieses Fenster schließen...'; return true;"
                        onmouseover="status='Dieses Fenster schließen...'; return true;"
                        title="Dieses Fenster schließen..."
                        style="TEXT-DECORATION: none"
                        onmouseout="status=''; return true;"
                        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>

<?
}
?>

aber ich habe das Problem, daß im IE folgende das Fenster in der Mitte der Seite zu sehen ist, aber bei Mozilla in obere Bereich der Seite, es wäre nett, wenn jemand mir sagen könnte, wie ich es hinkriegen kann, daß es auch bei Mozilla in der Mitte der Seite zu sehen ist.

Danke im Voraus.

Gruß
G.M.