Das funktioniert bei mir:
<!DOCTYPE html>
<html>
<head>
<title>jCoverflip Test</title>
</head>
<body>
<a href="javascript: insertAmazonCode();" style="" title="Hier können Sie einen Link für Bücher oder CDs erstellen"><img src="test.jpg"/></a>
[code lang=javascript]<script type="text/javascript">
function insertAmazonCode() {
var page='http://www.buechersuchseite.de/amazon_code_formular.php?land=DE&partnerId=xxxx';
var w = 640;
var h = 500;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var features = 'width='+w+',height='+h+',top='+wint+',left='+winl+',toolbar=0,status=0,resizable=1,scrollbars=1';
win3=window.open(page,"Codepage",features)
}
</script>
</body>
</html>[/code]
Wenn ich auf die Grafik klicke öffnet sich das Popup "Willkommen im Codegenerator..."