이 스크립트를 작성했습니다. 내 말에 따르면,이 이미지는 경고창이 울린 후 사라져야하지만, 그렇게되지는 않습니다.한 div에서 하나의 div를 표시하고 숨기는 방법
<html>
<head>
</head>
<body>
<div id='idDivread'
style="position:absolute;
z-index:100;
width:expression(document.body.offsetWidth +'px');
height:expression(document.body.offsetHeight + 'px');
left:0px;
top:0px;
display:'none';
text-align:center;
background-color:#EEF4FD;filter:alpha(opacity=70).">
<img src='images/Read.gif'
style="position:absolute;
top:expression(document.body.offsetHeight/2 -36 +'px')">
</div>
<div>
<input type="button" value="click me" onclick ="change();">
</div>
<p id="example"></p>
</body>
<script type ="text/javascript">
function change()
{
idDivread.style.display='';
setTimeout(function(){
alert("Hello")
},3000);
idDivread.style.display='none';
}
</script>
어떤 도움? 감사.
이 이미지가 전혀 표시되지 않습니다. – abhishek
관련 질문이 아니지만 CSS 표현식을 사용하고 있으므로이 답변을 살펴보아야합니다. http://stackoverflow.com/questions/6191679/css-expressions – MythThrazz