zoukankan      html  css  js  c++  java
  • .今天公司项目中的弹层效果

    记录下来备忘
    <style type="text/css">
    #top_NewsBg
    {
        display:none;
        background-color:#000;
        position:absolute;
        top:0;
        left:0;
        100%;
        height:100%;
        z-index:999;
    }
    #top_NewsDiv{display:none; background-color:#fff; position:absolute; top:50%; left:50%; height:235px;_height:225px;!height:225px; margin-top:-150px; 468px; margin-left:-250px;z-index:1100;}
    </style>
    <script language="javascript" type="text/javascript">
        function top_showNewsDiv(Fid, Amount) {
            $("#top_NewsIframe").attr("src", "/<%=Common.Para.siteHead %>u/ShowLogin.aspx?Fid="+Fid+"&Amount="+Amount);
            var scrolltop = $(document).scrollTop();
            var h = $(document).height() - 4 + scrolltop;
            $("#top_NewsBg").css("height", h + "px").css("width", $(document).width() - 17 + "px");
            $("#top_NewsBg").fadeTo("slow",0.5);
            $("#top_NewsDiv").fadeIn(500);
        }
        function close_top_NewsDiv() {
            $("#top_NewsDiv").fadeOut("fast");
            $("#top_NewsBg").fadeOut("fast");
        }
    </script>
    <div id="top_NewsBg"></div>
    <div id="top_NewsDiv"><iframe id="top_NewsIframe" style="100%;height:235px;_height:225px;!height:225px;" frameborder="0" scrolling="no"></iframe>
    </div>

    子页面中调用
    function closediv() {
                parent.close_top_NewsDiv();
     }
    关闭弹层

  • 相关阅读:
    sql 行转列
    wm_concat函数 用法
    PL/SQL如何调试Oracle存储过程
    Oracle&SQLServer中实现跨库查询
    Oracle 中 decode 函数用法
    Oracle中给用户赋予debug权限
    Oracle中的NVL函数
    oracle 触发器 pragma autonomous_transaction
    ORACLE中%TYPE和%ROWTYPE的使用
    A complete example using RAISE_APPLICATION_ERROR : raise_application_error
  • 原文地址:https://www.cnblogs.com/zpc870921/p/2640537.html
Copyright © 2011-2022 走看看