//開啟彈窗
function f {
var sHTML = '
< ;/p>'
'
'
'
';
new NeatDialog(sHTML, "請選擇Excel文件! ");
}
//關閉並移除彈窗
NeatDialog.prototype.close = function () {
if (this.elt) {
this.elt.style. display = "沒有任何」;
this.elt.parentNode.removeChild(this.elt);
}
window.neatDialog = null;
}
//建立彈窗
function NeatDialog(sHTML, sTitle) {
window.neatDialog = null;
this.elt = null;
if (document.createElement && document.getElementById) {
("div");
dg.className = "neat-dialog";
if (sTitle)
sHTML = '
' sTitle '
n' sHTML;
dg.innerHTML = sHTML;
var dbg = document.createElement("div");
dbg.id = "nd-bdg";
dbg.className = " neat-dialog-bg";
var dgc = document.createElement("div");
dgc.className = "neat-dialog-cont";
dgc.appendChild(dbg);
dgc.appendChild(dg);
if (document.body.offsetLeft > 0) {
dgc.style.marginLeft = document.body.body.offsetLeft > 0) {
dgc.style.marginLeft = document.body.bodyoffsetLeft "px";
}
document.bodyoff. appendChild(dgc);
this.elt = dgc;
window.neatDialog = this;
}
}