使用方法:
$("#confirm").click(function(){
Showbo.Msg.confirm('您确定删除这条记录吗?',function(flag){
if(flag=='yes'){
Showbo.Msg.alert('你点击了确定!');
}else if(flag=='no'){
Showbo.Msg.alert('你点击了取消!');
}
});
});
$("#alert").click(function(){
Showbo.Msg.alert('您好,请先注册或登录!');
});
回复
onResize: function(isResize) {
var X = $('#dvMsgBox').position().top;
alert(X);
var bodyHeight = $("body").css("height").replace("px", "");
alert(bodyHeight);
if (isResize) Showbo.initBodyScale();
Showbo.Msg.lightBox.style.width = Showbo.BodyScale.tx + 'px';
Showbo.Msg.lightBox.style.height = Showbo.BodyScale.ty + 'px';
/*Showbo.Msg.dvMsgBox.style.top=240+'px'; */
Showbo.Msg.dvMsgBox.style.top = Showbo.BodyScale.ty - Math.floor((Showbo.BodyScale.x - Showbo.Msg.dvMsgBox.offsetWidth) / 2) + 'px';
/*Showbo.Msg.dvMsgBox.style.left=Math.floor((Showbo.BodyScale.x-Showbo.Msg.dvMsgBox.offsetWidth)/2)+'px';*/
Showbo.Msg.dvMsgBox.style.left = Math.floor((Showbo.BodyScale.x - Showbo.Msg.dvMsgBox.offsetWidth) / 2) + 'px';
}