A cópia do código é a seguinte:
<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // pt" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-bransitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = gbk" />
<title> unt intitulado Documento </title>
<style type = "text/css">
/* Estilo da camada pop-up*/
html, corpo {altura: 100%; margem: 0px; Size da fonte: 12px;}
.mydiv {
Background-Color: #ff6;
borda: 1px sólido #f90;
Alinhamento de texto: centro;
altura da linha: 40px;
tamanho de fonte: 12px;
Peso da fonte: negrito;
Z-Index: 99;
Largura: 300px;
Altura: 120px;
Esquerda: 50%;/*ff ie7*/
topo: 50%;/*ff ie7*/
margem-esquerda: -150px! IMPORTANTE;/*FF IE7 Este valor é metade da largura de si mesmo*/
Margin-top: -60px! IMPORTANTE;/*FF IE7 Este valor é metade do mais alto*/
Margin-top: 0px;
Posição: Corrigido! IMPORTANTE;/*ff ie7*/
Posição: Absoluto;/*ie6*/
_top: expressão (avaliar (document.compatmode &&
document.compatmode == 'css1compat')?
DocumentElement.Scrolltop + (Document.DocumentElement.ClientHeight-This.OffSethEight)/2:/*IE6*/
document.body.scrolltop + (document.body.clientHeight - this.clientHeight)/2);/*ie5 ie5.5*/
}
.bg {
Background-Color: #CCC;
largura: 100%;
Altura: 100%;
Esquerda: 0;
topo: 0;/*ff ie7*/
filtro: alfa (opacidade = 50);/*ie*/
Opacidade: 0,5;/*ff*/
Z-Index: 1;
Posição: Corrigido! IMPORTANTE;/*ff ie7*/
Posição: Absoluto;/*ie6*/
_top: expressão (avaliar (document.compatmode &&
document.compatmode == 'css1compat')?
DocumentElement.Scrolltop + (Document.DocumentElement.ClientHeight-This.OffSethEight)/2:/*IE6*/
document.body.scrolltop + (document.body.clientHeight - this.clientHeight)/2);/*ie5 ie5.5*/
}
/*O fim*/
</style>
<script type = "text/javascript">
função showdiv () {
document.getElementById ('popdiv'). style.display = 'bloqueio';
document.getElementById ('bg'). style.display = 'bloqueio';
}
função fechada () {
document.getElementById ('PopDiv'). style.display = 'nenhum';
document.getElementById ('bg'). style.display = 'nenhum';
}
</script>
</head>
<Body>
<div id = "popdiv" style = "display: Nenhum;"> Parabéns! <br/> Sua nota é: 60 pontos <br/>
<a href = "javascript: feching ()"> feche a janela </a> </div>
<div id = "bg" style = "display: nenhum;"> </div>
<div Style = "Top-top: 20px;">
<input type = "submit" name = "" value = "exibir camada" onclick = "javascript: showdiv ()" />
</div>
</body>
</html>