<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
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>My JSP 'MyJsp.jsp' starting page</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">
<script type="text/javascript" src="js/jquery-1.8.2.js">
</script>
<style type="text/css">
.msg_box_masker {
z-index: 0;
background-color: #666666;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top:0px;
filter: alpha(opacity = 40);
opacity: .4;
}
</style>
<script type="text/javascript">
function showDiv() {
$("#areaDivIFrame").show();
$("body")
.append(
"<div class='msg_box_masker'></div>");
}
</script>
</head>
<body>
This is my JSP page.
<br>
<input type="text" />
<div id="areaDivIFrame"
style="position: absolute; left: 130px; top: 245px; margin: 0px 0px 0px; display: none; background-color: red; width: 100px; height: 200px; z-index: 1">
test!
</div>
<input type="button" value="OK" οnclick="showDiv()" />
</body>
</html>