Ich habe ein Content-Bereich innerhalb eines DIV in meiner Seite den ich mit ein halb transparentes DIV überdecken möchte solange neues Content mit Ajax geladen wird.
<div id="content">
<div id="überblendung"></div>
</div>
#content { width: 500px; height: 500px; position: relative; }
#überblendung {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: black;
opacity: 0.5;
filter:alpha(opacity=50);
display: none;
}
Per JavaScript einblenden:
document.getElementById('überblendung').style.display = "block";
Ausblenden: ebenso, nur weder "none".
Mathias