定时关闭
<div id="winpop">
<div class="title">提示<span class="close" onclick="hideDiv()">X</span></div>
<div class="con">
<center>
<br />
<a href="../SJGBKP/getRetire.do" target="homelist">退休人员详情(${retireUsercount})</a> <br />
<a href="../SJGBKP/getTransfer.do" target="homelist">调岗人员详情(${transferUsercount})</a>
</center> <br /><br />
</div>
</div>
<script type="text/javascript">
function tips_pop(){
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
MsgPop.style.display="block";
show=setInterval("changeH('up')",2);
}
function hideDiv(){
document.getElementById("winpop").style.display="none";
// alert("....");
}
function changeH(str) {
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
if(str=="up"){
if (popH<=150){
MsgPop.style.height=(popH+1).toString()+"px";
}
else{
clearInterval(show);
}
}
if(str=="down"){
if (popH>=4){
MsgPop.style.height=(popH-1).toString()+"px";
}
else{
clearInterval(hide);
MsgPop.style.display="none";
}
}
}
window.onload=function(){
var userType=document.getElementById('checkUserType').value;
if("admin"==userType){
document.getElementById('winpop').style.height='0px';
setTimeout("tips_pop()", 3000);
}
}
setTimeout("hideDiv()", 60000);
</script>