Benny: Im IE klappts, im Firefox nicht - Popup hat Scrollbars

Beitrag lesen

<html>
<head>
<script language="JavaScript">
<!--
function Zoom(myPicture, width, height)
{
   if (width>screen.width-100) {
     xy=width/height;
     width=screen.width-100;
     height=width/xy;
   }
   if (height>screen.height-100) {
     xy=height/width;
     height=screen.height-100;
     width=height/xy;
   }
   var oPopup = window.open('', 'start', 'width=' + width + ',height=' + height + ',scrollbars=no,status=no,menu=no,resizable=no,top=0,left=0');
   oPopup.close();
   var oPopup = window.open('', 'start', 'width=' + width + ',height=' + height + ',scrollbars=no,status=no,menu=no,resizable=no,top=0,left=0');
   oPopup.document.open();
   oPopup.document.write("<HTML>\n");
   oPopup.document.write("<HEAD>\n");
   oPopup.document.write("<title>" + myPicture + "</title>\n");
   oPopup.document.write("</HEAD>\n");
   oPopup.document.write('<BODY topmargin="0" leftmargin="0">\n');
   oPopup.document.write('<A HREF="#" OnClick="JavaScript:self.close();">\n');
   oPopup.document.write('<IMG name="bild" SRC="' + myPicture + '" ALT="zum Schliessen Bild anklicken." BORDER=0></A>\n');
   oPopup.document.write('<script type="text/javascript">bild.width=' + width + '</script>\n');
   oPopup.document.write('</BODY></HTML>');
   oPopup.document.close();
   oPopup.focus();
}
//-->
</script>
<noscript></noscript>
</head>
<body>
<?php
$count=0;
$dir="pics";
$handle=opendir($dir);
while ($file = readdir ($handle)) {
   if ($file != "." && $file != ".." && $file != "thumbs") {
       $size = getimagesize ($dir.'/'.$file);
       echo '<a href="javascript:Zoom(''.$dir.'/'.$file.'',''.$size[0].'',''.$size[1].'');"><img src=''.$dir.'/thumbs/'.$file.''" border="1" alt="Zum vergr&ouml;&szlig;ern klicken!"></a>';
       echo '&nbsp;&nbsp;&nbsp;';
       $count++;
       if ($count==5) {
          $count=0;
          echo '<br>';
       }
   }
}
closedir($handle);
?>
</body>
</html>

So klappt es immer noch nicht. Hab ich einen Fehler gemacht, oder an was könnte es liegen?

MfG Benny