彈出外掛程式

來源:互聯網
上載者:User

var pop =null;
function ShowIframe(title,contentUrl,width,height)
{
pop=new Popup({ contentType:1,isReloadOnClose:false,width:width,height:height});
pop.setContent("contentUrl",contentUrl);
pop.setContent("title",title);
pop.build();
pop.show();
}
function ShowHtmlString(title,strHtml,width,height)
{
pop=new Popup({ contentType:2,isReloadOnClose:false,width:width,height:height});
pop.setContent("contentHtml",strHtml);
pop.setContent("title",title);
pop.build();
pop.show();
}
function ShowConfirm(title,confirmCon,id,str,width,height)
{
var pop=new Popup({ contentType:3,isReloadOnClose:false,width:width,height:height});
pop.setContent("title",title);
pop.setContent("confirmCon",confirmCon);
pop.setContent("callBack",ShowCallBack);
pop.setContent("parameter",{id:id,str:str,obj:pop});
pop.build();
pop.show();
}
function ShowAlert(title,alertCon,width,height)
{
pop=new Popup({ contentType:4,isReloadOnClose:false,width:width,height:height});
pop.setContent("title",title);
pop.setContent("alertCon",alertCon);
pop.build();
pop.show();
}
function ShowCallBack(para)
{
var o_pop = para["obj"]
var obj = document.getElementById(para["id"]);
o_pop.close();
obj.click();
}
function ClosePop()
{
pop.close();
}

function __ToShowIframe(title, url, width, height) {
if (url.indexOf("?") == -1)
url = url + "?t=" + Math.random();
else
url = url + "&t=" + Math.random();
ShowIframe(title, url, width, height);
}

$.formValidator.initConfig({ formid: "form1", onerror: function(msg) { }, onsuccess: function() { } });
$("#txtUserName").formValidator({ onshow: "請填寫使用者名稱", onfocus: "必填 使用者名稱以字母/數字/底線組成(6~16)" }).regexValidator({ regexp: "^[a-zA-Z0-9\_]{5,20}$", onerror: "使用者名稱必須以字母/數字/底線組成(6~16)" });

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.