zoukankan      html  css  js  c++  java
  • 页面加载进度条、图片查看主键增大

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PageLoading.aspx.cs" Inherits="PageLoading" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>

        <script src="jquery-1.3.1.js" type="text/javascript"></script>

        <script type="text/javascript">
            $(function() {
                $("#open").click(function() {
                    if (parseInt($("#fadeDiv").size()) == 0) {
                        var fadeDiv = document.createElement("div");
                        fadeDiv.id = "fadeDiv";
                        fadeDiv.innerHTML = "";
                        document.body.appendChild(fadeDiv);
                    }
                    $("#fadeDiv").css({ top: 0, left: 0, bottom: 0, right: 0, backgroundColor: "lightgrey", opacity: 0.2, position: "absolute", zIndex: "50" });
                    //$("#fadeDiv").css({ height: document.body.scrollHeight });  //有滚动条时用

                    $("#max").animate({ "400px", height: "420px", left: "50%", marginLeft: "-200px", top: "200px" }, 500);
                    $("#img1").animate({ "400px", height: "400px", marginLeft: "0", top: "200px" }, 500);
                });
                $("#close").click(function() {
                    $("#fadeDiv").css({ top: 0, left: 0, bottom: 0, right: 0, backgroundColor: "white", opacity: 0, position: "absolute", zIndex: "-100" });
                    //$("#fadeDiv").css({ height: document.body.scrollHeight });  //有滚动条时用

                    $("#max").animate({ "0px", height: "0px", left: "50%", marginLeft: "0px", top: "-30px" }, 500);
                    $("#img1").animate({ "0px", height: "0px", left: "50%", marginLeft: "0px", top: "-30px" }, 500);
                });
            });
        </script>

    </head>
    <body>
        <form id="form1" runat="server">
        <div id="loading" style=" 220px; height: 40px; border: 1px lightgrey solid;
            font-size: smaller; position: absolute; left: 50%; margin-left: -110px; top: 200px;
            padding: 10px 10px; background-color: #f0f0f0; z-index: 1000;">
            <div style=" 100%; color:green;">
                页面加载中......
            </div>
            <div style=" 100%; float: left; height: 20px; background: url(images/loading2.gif);">
            </div>
        </div>
        <a href="javascript:;" id="open">open</a>
        <div id="max" style=" 0px; height: 0px; border: 1px lightgrey solid; position: absolute;
            left: 50%; margin-left: 0px; top: 0px; background-color: White; z-index: 500;
            display: none;">
            <div style=" 100%; text-align: right; background-color: lightblue; height: 20px;">
                <a href="javascript:;" id="close">X</a>&nbsp;&nbsp;
            </div>
            <div style=" 100%; height: 100%;">
                <img id="img1" alt="" src="111.jpg" width="400px" height="380px" />
            </div>
        </div>

        <script type="text/javascript">
           // $("#loading").fadeOut()
        </script>

        </form>
    </body>
    </html>

  • 相关阅读:
    Docker Compose部署项目到容器-基于Tomcat和mysql的项目yml配置文件代码
    Docker Compose部署项目到容器-基于Tomcat和mysql的商城项目(附源码和sql下载)
    Winform中在FastReport的PreviewControl预览控件中对report控件模板中控件值进行修改
    Winform将FastReport的report与PreviewControl建立绑定关系
    Winform中使用FastReport实现自定义PDF打印预览
    Winform中使用FastReport实现简单的自定义PDF导出
    Docker Compose基本使用-使用Compose启动Tomcat为例
    Docker-Compose简介与Ubuntu Server 上安装Compose
    FastReport安装包下载、安装、去除使用限制以及工具箱中添加控件
    一个程序员的自白(乱中有序)
  • 原文地址:https://www.cnblogs.com/ajun/p/2546736.html
Copyright © 2011-2022 走看看