Momo: Fenstergröße der Bildgröße anpassen

Beitrag lesen

Also hier mal ein Beispiel Script:

function popup(loc){
HTML="<html><head><title>Bild</title><meta http-equiv="imagetoolbar" content="no"><style type="text/css">body{margin:0px;}</style></head><body marginwidth="0" marginheight="0" onBlur='top.close()'><a href="javascript:window.close()"><img src='images/"+loc+"' border=0 alt="Fenster schliessen"name=li onLoad='window.resizeTo(document.li.width+10,document.li.height+29)'></a></body></html>";
if(window.screen) var myleft=(screen.width-364)/2,mytop=(screen.height-368)/2;
popupImage=window.open('about:blank','_blank','toolbar=no,scrollbars=no,width=364,height=368,left='+myleft+',top='+mytop);
popupImage.document.open();
popupImage.document.write(HTML);
popupImage.document.close();
}

<a href="javascript:popup('Bild.jpg');">Bild PopUp</a>

Funktioniert aber nur in IE mit dem ReSize. Hier bitte den Pfad zu dem Bild angeben src='images/"+