Servus,
habe gerade über Javascript ein Popup-Fenster geöffnet, in welches einfach kurz ein kleiner HTML-Code eingefügt wird, der ein Bild anzeigt.
Das funktioniert auch prinzipiell ganz gut, aber unter Firefox wird mir in diesem kleinen Popup die Statusbar angezeigt, in der ein halb gefüllter Ladebalken zu sehen ist, und der Mauspfeil auf dem Popup ist der Pfeil mit der kleinen Sanduhr nebendran. Also so, als würde die Seite ewig laden (was ja irgendwie Quatsch ist, da das ja nur ein paar Zeilen HTML sind inkl. Bild, welches sofort da ist).
Unter Opera und IE funktioniert es tadellos, bzw. wird da so oder so keine Statusbar in den Popups gezeigt (wie auch in den Optionen angegeben), aber auch der Mauspfeil ist normal.
Woran kann das liegen?
Code:
function showPicture(url)
{
var w = 32;
var h = 32;
var x = screen.width / 2;
var y = screen.height / 2;
var options = "";
options += "width=" + w + ",";
options += "height=" + h + ",";
options += "top=" + y + ",";
options += "left=" + x + ",";
options += "toolbar=no,location=no,status=no";
var title = "Galerie";
var html = "<html>";
html += "<head><title>" + title + "</title></head>";
html += "<body style='margin:0px'>[img]" + url + "[/img]</body>";
html += "</html>";
var newwin = window.open('about:blank', title, options);
newwin.document.write(html);
// resize and move
w = newwin.document.images[0].width;
h = newwin.document.images[0].height;
x -= w / 2;
y -= h / 2;
newwin.resizeTo(w, h);
newwin.moveTo(x, y);
}