shadow.js 1.27 KB
var config = {
    mask_zindex : 9023,
    shadow_zindex : 9024
};
var shadowBuilder = {
    close : function(){
        $("body>div.window-shadow").remove();
        $("body>div.window-mask").remove();
    },
    buildShadow: function(){
                var window_shadow = $("<div></div>");
                window_shadow.attr("class","window-shadow");
                window_shadow.css({
                    display: "block",
                    "z-index": config.shadow_zindex
                    //left: 695px,
                    //top: 355px,
                    //width: 300px,
                    //height: 149px
                });
                $("body").append(window_shadow);
                //<div class="window-shadow" style="display: block; left: 695px; top: 355px; z-index: 9027; width: 300px; height: 149px;"></div>

                //<div class="window-mask" style="display: block; z-index: 9023; position: fixed;"></div>
                var window_mask = $("<div></div>");
                window_mask.attr("class","window-mask");
                window_mask.css({
                    display: "block",
                    "z-index": config.mask_zindex,
                    position: "fixed"
                });
                $("body").append(window_mask);
             }

}