Oh, zu schnell auf "absenden" gedrueckt, ein Fehler ist drin.
Mach die Function WritePic lieber so:
function WritePic() {
picked = return GetPic();
document.writeln("<a href='javascript:PopUp(" + picked + ");'><img src='" + picked + "'></a>");
}
function WritePic() {
document.writeln("<a href='javascript:PopUp(" + GetPic() + ");'><img src='" + GetPic() + "'></a>");
}
function PopUp(bild) {
gBild = "g" + bild;
win2 = window.open( "","win2","width=300,height=400");
win2.document.write("<html><head></head><body><img src='" + gBild + "'></body></html>");
win2.focus();
}
Gruss, Mel