自制弹出框--公告消息
来源:互联网 发布:程序员高级证书如何考 编辑:程序博客网 时间:2024/05/23 19:24
//消息标题的list
<input type="button" onclick="news(${bn.id});" title="查看详情" value="${bn.title }"/>
//弹出框-先隐藏
<div class="popup edit_data_popup" id="newsDetail" style="width:700px;height:350px;left:50%;top:20%;margin-left:-325px;display: none;">
</div>
//JS--显示弹出,组装标题和内容、关闭按钮
function news(id){
$.ajax({
type : "POST",
url:"${path}/bulletinNews/newsDetail.do",
dataType: 'json',//返回数据的类型
data:{id:id},
success: function (data) {
$("#newsDetail").html("");
var html = "<div class='popup_top'><span></span><b class='popup_title'>"+data.o.title+"</b></div>";
html += "<div class='popup_main'><div class='popup_txt align_center'>"+data.o.content+"</div></div>";
html += "<div class='popup_bottom align_center'><input type='reset' onclick='exit();' value='关闭'/></div>";
$("#newsDetail").append(html);
$("#newsDetail").show();
}
});
}
function exit(){
$("#newsDetail").hide();
}
- 自制弹出框--公告消息
- jQuery与HTML自制弹出框
- Unity3D: 自制提示框消息 (Toast)
- 弹出消息框 javascript
- 弹出消息框
- 弹出消息框
- android弹出消息框
- 弹出消息框
- QT弹出消息框
- div弹出消息框
- C++弹出消息框
- android 弹出消息框
- 公告:消息系统停站维护公告
- javascript弹出消息提示框
- 背景变暗弹出消息框
- lazycode 弹出消息框类
- 【ASP.NET】 弹出消息框
- Sharepoint 弹出消息提示框
- <span>与<div>标签
- 部署在服务器上的应用请求json文件返回404解决方法及原因分析
- spring mvc配置 + dbcp数据源+jdbcTemplate
- Spring事务传播机制和隔离机制
- Activity全屏非全屏的切换
- 自制弹出框--公告消息
- 购物车小做
- iPhone启动图尺寸
- 初学者手绘漫画人物基础教程
- MyBatis动态sql中模糊查询
- C结构体与JAVA类的相互转换
- 测试
- Android RecyclerView 使用完全解析 体验艺术般的控件
- 随机森林