| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 
 | <?
$url="http://www.google.fr/logos/7th_birthday.gif";
$width=310;
$height=120;
?>
<html>
<head>
<script type="text/javascript">
function open_popup(url,height,width)
{
popup_top=((screen.height-height)/2);
popup_left=((screen.width-width)/2);
window.open(url,"nomfenetre","top="+popup_top+", left="+popup_left+", height="+height+", width="+width);
}
</script>
</head>
<body>
<a href="javascript: open_popup(<?php echo "'".$url."',".$height.",".$width; ?>)">lien dans une popup</a>
</body>
</html> | 
Partager