-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome.jsp
37 lines (33 loc) · 1.33 KB
/
home.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("UTF-8");
ArrayList l=(ArrayList)session.getAttribute("login");
String ad1=(String)l.get(0);
String ty=(String)l.get(1);
%>
<html>
<head> <title>主 页</title>
<link rel="shortcut icon" href="photo\favicon.ico" type="image/x-icon">
<link rel="icon" href="\photo\favicon.ico" type="image/x-icon">
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
<iframe src='head.jsp' name="head" id="head" width="100%" height="144px" frameborder="0" scrolling="no"></iframe>
<iframe id="bodyiframe" name="bodyiframe" src="body.html" width="100%" height="0" frameborder="0" scrolling="no" onload="SetBodyHeight()"></iframe>
<iframe src="foot.html" width="100%" height="150px" frameborder="0" scrolling="no"></iframe>
<script type="text/javascript">
function SetBodyHeight(){
var iframeid=document.getElementById("bodyiframe");
if (document.getElementById){
if (iframeid && !window.opera){
if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){
iframeid.height = iframeid.contentDocument.body.offsetHeight;
}
else if(iframeid.Document && iframeid.Document.body.scrollHeight){
iframeid.height = iframeid.Document.body.scrollHeight;
}
}
}
}
</script>
</body>
</html>