windowmessage

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <style type="text/css">
#winpop { width:300px; height:0px; position:absolute; right:0; bottom:0; border:1px solid #999999; margin:0; padding:1px; overflow:hidden; display:none; background:#FFFFFF}
#winpop .title { width:100%; height:20px; line-height:20px; background:#290052; font-weight:bold; text-align:center; font-size:12px; color:#FFFFFF; }
#winpop .con { width:100%; height:350px; line-height:80px; font-weight:bold; font-size:12px; color:#FF0000; text-decoration:underline; text-align:center}
.close { position:absolute; right:4px; top:-1px; color:#FFFFFF; cursor:pointer}
.small { position:absolute; right:32px; top:1px; color:#FFFFFF; cursor:pointer}
.open { position:absolute; right:14px; top:1px; color:#FFFFFF; cursor:pointer}
</style>
<script type="text/javascript">
function tips_pop(type){
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
//alert(popH);
   if (type=='2'){
//   MsgPop.style.display='block';
   show=setInterval("changeH('up')",2);
   }
else if(type=='3'){
    hide=setInterval("changeH('down')",2);
}
else if (type=='1')
{
   
    hide=setInterval("changeH('small')",2);
}

}
function changeH(str) {
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
if(str=="up"){
   if (popH<=200){
   MsgPop.style.height=(popH+4).toString()+"px";
   }
   else{ 
   clearInterval(show);
   }
}
if(str=="down"){
   if (popH>=4){
   MsgPop.style.height=(popH-4).toString()+"px";
   }
   else{
   clearInterval(hide);
   MsgPop.style.display="none";
   }
}
if(str=="small"){
   if(popH>=20)
  {
   MsgPop.style.height=(popH-4).toString()+"px";
   }
   else{
   clearInterval(hide);
  // MsgPop.style.display="none";
   }
}
}
window.onload=function(){
document.getElementById('winpop').style.height='0px';
setTimeout("tips_pop()",200);
}
function CompleteToNext()
{
   var griddiv = document.getElementById('winpop');
   griddiv.style.display='block';
    show=setInterval("changeH('up')",2);
   //setTimeout("changeH('up')",500);
   //tips_pop();
}
</script>
</head>
<body  >
    <form id="form1" runat="server">
    <input type="button" class="ButtonCss" runat="server" id="btn_ToNext" name="btn_ToNext"
                        value="提交" onclick="CompleteToNext()" />
 
<div id="winpop" style="display:none">
<div class="title">短消息<span class="small" onclick="tips_pop('1')">一</span><span class="open" onclick="tips_pop('2')">口</span><span class="close" onclick="tips_pop('3')">X</span></div>
    <div class="con">未读消息 (3)</div>
    <div class="con">未读消息 (3)</div>
</div>
</form>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值