1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>test</title>
<style>
#popup {
z-index: 99;
display: none;
position: absolute;
width: 100%;
height: 100%;
top:200px;
left:200px;
}
#fenetre {
border: 1px solid rgb(0, 0, 0);
background: rgb(255, 255, 255) none repeat scroll 0% 50%;
-moz-background-clip: initial;
-moz-background-origin: initial;
-moz-background-inline-policy: initial;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div id="popup">
<div id="fenetre" style="">Et ça fait une jolie fenetre de 300x300<br>
<div onclick="document.getElementById('popup').style.display = 'none'">Refermer
la popup</div>
</div>
</div>
<div onclick="document.getElementById('popup').style.display = 'block'">Affiche
la popup</div>
</body>
</html> |