sobox彈窗控制元件,設定彈出窗的z-index
之前試圖修改js原始碼,想了一天,但是不管用,然後在jsp直接加程式碼,竟然可以了,程式碼如下:
function click(){
var lang = 'zh';
var str = "成功";
if (lang == "en"){
str = "success";
}
var yesFunction = function(){}
getAlert(lang,str,yesFunction);
}
function getAlert(lang,content,yesFunction){
//var lang = 'en';
var titleStr = "提示";
var textConfirmStr = "確認";
var testCancelStr = "取消";
if(lang == 'en'){
titleStr = "tip";
textConfirmStr = "YES";
testCancelStr = "NO";
}
$.sobox.pop({
posType:'top',
pos:[100,100], // [x,y] 距離document左上角座標,set模式使用
offset:[500,-300], // [x,y] 彈窗相對本來設定位置偏移量,center模式只改變y軸
content : content,
cls : null,
width:220,height:null,
defaultShow:true,
visibility:true,
title : titleStr,
showTitle:true,
outCloseBtn : false,
showMask : false,
onlyOne : false,
drag :true,
maskClick : true,
btn : [
{cls:'a-sopop-btn',
text:textConfirmStr,
callback:function (removePop){yesFunction();}}],
});
$(".so-popbox").css({"z-index":9999});
}