function Show_TopDiv(msg,msg_Width,msg_Height) {

var titleheight = "22px"; // 提示窗口标题高度

var bordercolor = "#666699"; // 提示窗口的边框颜色

var titlecolor = "#FFFFFF"; // 提示窗口的标题颜色

var titlebgcolor = "#666699"; // 提示窗口的标题背景色

var bgcolor = "#FFFFFF"; // 提示内容的背景色

var iWidth = document.documentElement.clientWidth;

var iHeight = document.documentElement.clientHeight;

var bgObj = document.createElement("div");

bgObj.style.cssText = "position:absolute;left:0px;top:0px;width:" + iWidth + "px;height:" + Math.max(document.body.clientHeight, iHeight) + "px;filter:Alpha(Opacity=30);opacity:0.3;background-color:#000000;z-index:101;";

bgObj.ID = "div_Top_Div1";

document.body.appendChild(bgObj);

var msgObj = document.createElement("div");

msgObj.style.cssText = "position:absolute;font:11px '宋体';top:" + (iHeight - msg_Height) / 2 + "px;left:" + (iWidth - msg_Width) / 2 + "px;width:" + msg_Width + "px;height:" + msg_Height + "px;text-align:center;border:1px solid " + bordercolor + ";background-color:" + bgcolor + ";padding:1px;line-height:22px;z-index:102;";     msgObj.ID = "div_Top_Div2";

document.body.appendChild(msgObj);

var table = document.createElement("table");

msgObj.appendChild(table);

table.style.cssText = "margin-top:20px;border:0px;padding:0px;";

table.cellSpacing = 0;;     var msgBox = table.insertRow(-1).insertCell(-1);

msgBox.style.cssText = "font:10pt '宋体';";

msgBox.colSpan = 2;     msgBox.innerHTML = msg; }

////調用方法:

//var msg = "正在讀取Excel,請稍后...";

//Show_TopDiv(msg, 200, 50);

05-06 17:49