<style type="text/css">
#mydiv
{
position:absolute; width:600px; height:500px; top:50%; left:50%; margin-top:-250px; margin-left:-300px;display:none;
background-color:Gray;
}
#divcover
{
position:absolute; width:100%; height:100%; top:0; left:0; background-color:Black; opacity:0.3; display:none;
}
</style>
<script type="text/javascript">
function showinfo()
{
if (confirm('真的要删除吗') == false)
return false;
}
function showdiv()
{
document.getElementById('divcover').style.display = 'block';
document.getElementById('mydiv').style.display = 'block';
}
function closediv()
{
document.getElementById('divcover').style.display = 'none';
document.getElementById('mydiv').style.display = ' ';
}
</script>