zoukankan      html  css  js  c++  java
  • jquery 简单弹窗


    //弹窗begin
    function CreatePopLayerDiv(title, width, height, content, url) {
    var titles = title || "视频界面";
    var Iheight = $(window).height();
    var Iwidth = $(window).width();
    var heights = height || 300;
    var widths = width || 500;
    var Oheight = (Iheight - heights) / 2;
    var Owidth = (Iwidth - widths) / 2;
    var contents = content || "内容";
    var div = "<div id='InDiv' style='" + Iwidth + "px;height:" + Iheight + "px;background-color:#888;position:absolute;z-index:10000;top:0;left:0;opacity:1;'><div id='offDiv' style='" + widths + "px;height:" + heights + "px;left:" + Owidth + "px;top:" + Oheight + "px;background-color:white;position:absolute;z-index:10001;'><h4 id='HTitle' style='margin:0px;padding:3px;background:#336699;opacity:0.9;border:1px solid ##336699;height:20px;line-height:20px;font:12px Verdana, Geneva, Arial, Helvetica, sans-serif;color:white;cursor:pointer;text-align:left;'>" + titles + "<a id='AClose' onclick='btnCloses()' style='float:right;'>鍏抽棴</a></h4><div id='Content'>" + contents + "</div></div></div>";
    $(document.body).append(div);
    if (url != "") {
    $("#Content").load(url);
    }
    }
    //绉婚櫎寮瑰嚭灞?
    function RemoveDiv() {
    $("#AClose").remove();
    $("#HTitle").remove();
    $("#offDiv").remove();
    $("#InDiv").remove();
    }

    function btnCloses() {
    RemoveDiv();
    }

    //弹窗end

  • 相关阅读:
    NUnit
    Fxcop
    msdeploy命令实现远程部署时保留指定文件
    virtualBox 创建新虚拟机
    sharepoint项目部署
    执行批处理文件
    NCover
    配置Web DashBoard
    ccnet+ncover+fxcop+web deploy+mstest
    命令行部署Reporting Services项目
  • 原文地址:https://www.cnblogs.com/hzf08/p/10997147.html
Copyright © 2011-2022 走看看