Hallo Piranja,
habe deinen Code jetzt mal folgendermaßen benutzt:
der link:
<a href="javascript:popup('maske.gif',1000,750);" target="image"><img width="640" src="image/maske.gif" border="0"></a>
die js:
<script language="javasript">
function popup(pic,width,height) {
newWin = window.open("popup.htm?" +bild,"image","scrollbars=no,toolbar=no,location=no,status=no, resizeable=yes,width="+width+",height="+height+");
}
</script>
und die popup.htm:
<html>
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="style.css">
<body onload="self.focus()" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<script language="javascript">
var bild = location.search;
bild = bild.substr(1);
document.write('<img src="'+bild+'" border=0>');
</script>
</body>
</html>
Leider bekomme ich derzeit noch einen javascript-consolen Fehler:
Fehler: popup is not defined
Quelldatei: javascript:popup('maske.gif',1000,750); Zeile: 1
Was hab ich'n da jetzt noch falsch gemacht?
mfg Chris