页面弹框(后台加载页面信息)

js代码

//抄送个人
OperationBar.prototype.copySomeone = function(){
copySomeoneDialog("抄送个人",FRAMEWORK_BASE_PATH+'/document/operation/csSomeone?single=false','500px','390px','iframe');//action路径
}

function copySomeoneDialog(title,content,width,height,cssName){
var temp_float=new String;
temp_float="<div id='floatBoxBgCs'></div>";
temp_float+="<div id='floatBoxCs' class='floatBox'>";
temp_float+="<div class='titlecs'><h4></h4><span>关闭</span></div>";
temp_float+="<div class='contentcs'></div>";
temp_float+="</div>";
$("body").append(temp_float);

$("#floatBoxCs .titlecs span").click(function(){
$("#floatBoxBgCs").remove();
$("#floatBoxCs").remove();
});

$("#floatBoxCs .titlecs h4").html(title);
$("#floatBoxCs .contentcs").html("<iframe src='"+content+"' height='"+height+"px' width='100%' scrolling='auto' frameborder='0' marginheight='0' marginwidth='0'></iframe>");

$("#floatBoxBgCs").css({display:"block",height:$(document).height(),});
$("#floatBoxCs").css({display:"block",left:(($(document).width())/2-(parseInt(width)/2))+"px",top:($(document).scrollTop()+80)+"px",width:width,});
}

 

css代码

 

/**抄送个人浮框样式**/
#floatBoxBgCs{width:100%;height:100%;background:#000;filter:alpha(opacity=50);opacity:0.0;position:absolute;top:0;left:0;z-index: 19;}
.floatBox{border:#deefff 1px solid;width:300px;position:absolute;top:50px;left:40%;z-index: 20;background-color:#fff}
.floatBox .titlecs{height:33px;padding:7px 10px 0;background:#deefff;color:#000;width:100%}
.floatBox .titlecs h4{float:left;padding:0;margin:0;font-size:14px;line-height:19px;}
.floatBox .titlecs span{float:right;cursor:pointer;padding-top: 2px;}
.floatBox .contentcs{background:#fff;}

 

转载于:https://www.cnblogs.com/husfsh-16300/p/7209461.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值