Salut
un script que j'avais modifié en 2004, vois si tu peux en tirer quelque chose.
.......................
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Auto popup</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body
{
text-align: center;
}
</style>
<script type="text/javascript">
<!--
// script based on works found at :
http://www.howtocreate.co.uk/perfectPopups.html
// last modified by Leris
function vamaPopup(oW,oTitle,oContent) {
var hauteur_popup=200;
var H = (screen.height - hauteur_popup) / 2;
var largeur_popup=480;
var L = (screen.width - largeur_popup) / 2;
var x = window.open('','windowName','status=yes,scrollbars=no,resizable=yes,height='+hauteur_popup+',width='+largeur_popup+',top='+H+',left='+L);
x.document.write('<html><head><title>'+oTitle+'<\/title><\/head><body style="text-align: center; background-color: aliceblue">'+
(document.layers?('<layer width="400" id="myID">'):('<div style="position:relative;margin-right:auto;margin-left:auto;text-align:center;font-family:arial;font-size:12px;color:green;border:1px solid red;width:400;background-color:white;" id="myID">'))+oContent+(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
x.document.close();
}
//-->
</script>
</head>
<body>
<br>
<a href="#" onclick="vamaPopup(1,'Hello','BONJOUR<br><br>Ceci est une popup generée par la page appelante<br><img src=mouche.gif><br><br><div style=text-align:right;padding-right:5px;color: blue;font-size:10px; font-family:arial;>Leris</div>');">Cliquez pour voir ma popup</a>.
</body>
</html>
.......................
L.