JS弹出遮罩层
2014-04-15 09:07
489 查看
<html> <head> <title></title> <script type="text/javascript"> function show() { document.getElementById("xie").style.display = "";//设置display document.getElementById("content1").style.display = ""; document.getElementById("xie").style.filter = "Alpha(Opacity=50)";//透明度 document.getElementById("content1").innerHTML = "你的内容<input onclick='hide()' type='button' value='确定'/>"; } function hide() { document.getElementById("xie").style.display = "none"; document.getElementById("content1").style.display = "none"; } </script> </head> <body> <div style="width: 100%; background-color: Gray; display: none; height: 100%; position: absolute; left: 0; top: 0;" id="xie"> </div> <div style="width: 260px; background-color: Blue; display: none; height: 113px; position: absolute; left: 244px; top: 137px;" id="content1"> </div> <div id="fuck"> <input onclick="show()" type="button" value="显示" /> </div> </body> </html>
相关文章推荐
- 转: 模块化开发框架seajs简介
- javascript模块加载框架seajs详解
- JavaScript event对象clientX,offsetX,screenX异同
- javascript调试之DOM断点调试法使用技巧分享
- javascript页面渲染速度测试脚本分享
- js实现 股票实时数据 监测
- yii_wiki_394_javascript-and-ajax-with-yii (在yii 中使用 javascript 和ajax)
- JS比较2个日期间隔
- javascript页面渲染速度测试脚本分享
- javascript调试之DOM断点调试法使用技巧分享
- 使用JavaScript的ActiveXObject对象检测应用程序是否安装的方法
- JS比较2个日期间隔的示例代码
- servlet返回json字符串,ajax接受失败
- Extjs毕业设计:在做分页查询产品信息时,出现TypeError: this.ds is undefined?
- Extjs 4 grid修改某一行style
- JavaScript实现 Simulated-Annealing算法
- jsp 用户上传头像、上传图片、邮件上传附件代码
- 作业4 猜数字游戏jsp
- JSP/Servlet文件上传下载
- SSH返回Json格式的数据