Posted on 2007-09-14 17:46
G_G 閱讀(2233)
評論(3) 編輯 收藏 所屬分類:
HTML
本人特留使用 ( ^_^ 寫html 不多 呵呵 )
??? 本頁問題說明: 在第一次加載這3個頁面的javascript可正常使用
?????????????????? 后 ajax修改的( innerHTML= )頁面 javascript就使用不了全頁的document而是修改后的document
??? ?? ?? ?? ?? ?? 有人可以幫幫忙嗎?
<%@?page?language="java"?import="java.util.*"?pageEncoding="GBK"%>
<%
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?'Layout.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?src="http://127.0.0.1:7000/jspLayout/js/ajax.js"></SCRIPT>
????<!--
????<link?rel="stylesheet"?type="text/css"?href="styles.css">
????-->
??</head>
??
??<body>
???????????<%@include?file="../html/top.jsp"%>
???????????<table?width="90%">
???????????????<tr>
???????????????????<td??valign="top"?align="center"?height="80%">
???????????????????????<jsp:include?flush="true"??page="../html/left.html"/>
???????????????????</td>
???????????????????<td?id="cen"?valign="middle"?align="center"?width="80%"?height="80%">
???????????????????????<jsp:include?flush="true"??page="../html/center.html"/>
???????????????????</td>
???????????????</tr>
???????????</table>
??</body>
</html>