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 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<SCRIPT LANGUAGE="javascript">
<!--
var ff = null ;
function ouvrir2(lien,cible)
{
ff = window.open (lien,cible,"width=500,height=420,scrollbars=yes,toolbar=no,"
+"location=no,directories=no,status=yes,resizable=yes,location=yes,"
+"toolbar=yes,menubar=yes,left=120,top=20");
ff.focus();
}
//-->
</SCRIPT>
<script language="javascript">
function montre(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="visible";
} else if (document.all) {
document.all[id].style.visibility="visible";
} else if (document.layers) {
document.layers[id].visibility="visible";
} }
function cache(id) {
if (document.getElementById) {
document.getElementById(id).style.visibility="hidden";
} else if (document.all) {
document.all[id].style.visibility="hidden";
} else if (document.layers) {
document.layers[id].visibility="hidden";
}
document.layers[id].visibility="hidden";
}
</script>
<style type="text/css">
#mini {
position:absolute;
left:50px;
top:50px;
border:1px solid blue;
text-align:center;
width:300px;
height:150px;
background:lightblue;
}
</style>
</head>
<body>
<!-- =================== -->
<a href="javascript:montre('mini')">PopUp</a>
<!-- =================== -->
<div id="mini">
Exemple
<br />
<br />
<br />
<a href="javascript:cache('mini')">cacher</a>
</div>
</body> |
Partager