博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
javaScript遮罩
阅读量:7088 次
发布时间:2019-06-28

本文共 1767 字,大约阅读时间需要 5 分钟。

hot3.png

<style type="text/css">

        #container {}
        #pagetitle {font-size: 20px; font-weight: bold; width: 100%; text-align: center; }
   </style>

-------------------------------------------------------------------------------------------

     jQuery(function() {
      var today = new Date();
      var yesterday = today.setDate(today.getDate()-1);
      jQuery("#day").datepicker({ dateFormat: "yy-mm-dd",maxDate: new Date(yesterday) });
   
   var container=document.getElementById("container");
      container.style.height=(document.body.clientHeight-20)+"px";
     });

-------------------------------------------------------------------------------------------

function sendEmail(){

var url = "$rc.contextPath/sendEmailDayReport.do";

             var param = {"day":$("#day").val()};
    
    $("#show").css("display","");
       $("#bg").css("display","");
   
      $("#data").load(url, param,function(res,status,xhr) {
        $("#show").css("display","none");
           $("#bg").css("display","none");
       //("success", "notmodified", "error", "timeout" 或 "parsererror")
           if(status == 'success'){
            res = eval("(" + res + ")");
         if(res=="1"){
            alert("邮件发送成功!");
         }else if(res=="0"){
            alert("邮件发送失败!");
         }else{
            alert("系统发生异常!");
         }
     }else if(status =='error'){
         alert("ajax操作失败!");
     }
        });

}

----------------------------------------------------------------------------------------------

 <div id="container" style="overflow-y:auto;padding-top:20px;">

    <div id="bg" style="display:none;width:100%; height:100%; background:#aaa; filter:alpha(Opacity=50); position:absolute; left:0; top:0;"></div>
    <div id="show" style="display:none;padding:8px 0 8px 44px; margin-left:-80px; position:absolute; left:50%; top:344px; z-index:2; color:#000; background:url(images/loading.gif) no-repeat;">邮件发送中,请稍后...</div>
    <div id="data" style="display:none"></div>

 

转载于:https://my.oschina.net/u/180766/blog/165230

你可能感兴趣的文章
Neural networks representation 习题
查看>>
Codeforces Round #367 (Div. 2) D. Vasiliy's Multiset (TireTree之位字典树)
查看>>
懒加载预加载(图片)
查看>>
网站的Information Architecture--构建一个最优用户体验的site structure
查看>>
GeoServer地图开发(001)-环境配置
查看>>
点化讲究机缘--剑雨
查看>>
Web Scalability for Startup Engineers Tip&Techniques for Scaling You Web Application --读书笔记
查看>>
App域名劫持之DNS高可用 - 开源版HttpDNS方案详解(转)
查看>>
CodeChef - QCHEF 分块
查看>>
java pkcs#11读取证书加解密(初学-分享)
查看>>
JavaScript 相关
查看>>
SpringBoot图片上传(二)
查看>>
oracle简单存储过程以及如何查看编译错误
查看>>
常见的表单元素选中
查看>>
C# 解压与压缩文件
查看>>
C# 编写Web API
查看>>
OC内存管理
查看>>
leetcode------Construct Binary Tree from Inorder and Postorder Traversal
查看>>
软件测试分类
查看>>
java程序中调用Linux命令Windows命令
查看>>