JS实现兼容火狐及IE iframe onload属性的遮罩层隐藏及显示效果
(编辑:jimmy 日期: 2024/11/19 浏览:3 次 )
本文实例讲述了JS实现兼容火狐及IE iframe onload属性的遮罩层隐藏及显示效果。分享给大家供大家参考,具体如下:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title></title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> <style type="text/css"> <!-- #Layer1 { position: absolute; width: 896px; height: 472px; z-index: 1; left: 97px; top: 120px; } #Layer2 { position: absolute; width: 127px; height: 86px; z-index: 2; left: 1159px; top: 240px; } #Layer3 { position: absolute; width: 200px; height: 115px; z-index: 3; left: 404px; top: 160px; } body { background-image: url(lib/images/index111.jpg); margin-left: -10px; } .input_image{border:0px solid #808080; background-color:#006699;} --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()" > <div id="Layer3"> <img src="/UploadFiles/2021-04-02/welcome33.gif">更多关于JavaScript相关内容感兴趣的读者可查看本站专题:《JavaScript切换特效与技巧总结》、《JavaScript动画特效与技巧汇总》、《JavaScript查找算法技巧总结》、《JavaScript数据结构与算法技巧总结》、《JavaScript遍历算法与技巧总结》、《JavaScript中json操作技巧总结》、《JavaScript错误与调试技巧总结》及《JavaScript数学运算用法总结》
希望本文所述对大家JavaScript程序设计有所帮助。
下一篇:JS实现放大、缩小及拖拽图片的方法【可兼容IE、火狐】