<!
<%@ page contentType ="text/html;charset=gb
<%@ page import="java
<!DOCTYPE HTML PUBLIC "
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<iframe width="
<script>
function ExpandNode(ParentNode
var NodeX = eval(ParentNode
if (NodeX
{
NodeX
if (NodeX
{
document
NodeX
}
}
else
{
NodeX
}
}
</script>
<CENTER>
<TABLE border="
<TR>
<TD>
<DIV style="OVERFLOW: auto;WIDTH:
<TABLE width="
<TR>
<TD>
<%
java
// java
// java
java
int i=
int children;
int ID;
while (ResultSetX
{
children=ResultSetX
ID=ResultSetX
%>
<div id=
<% if (children >
{%>
onClick=
<%;}
else {%>
>
<a #
<% if (children >
{%>
onDblClick=
<%} %>
>
<%=ResultSetX
</div>
<div id=
正在加載
</div>
<%
i++;
}
%>
</BODY>
</HTML>
<!
<%@ page contentType ="text/html;charset=gb
<%@ page import="java
<!DOCTYPE HTML PUBLIC "
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<%
String ParentNode = request
int i;
int j;
String nSpace="";
j= ParentNode
for (i=
nSpace = nSpace + " ";
String sHTML ="";
i=
java
// java
// java
java
int children;
int ID;
while (ResultSetX
{ children=ResultSetX
ID=ResultSetX
sHTML = sHTML + "<div id=
if (children >
sHTML = sHTML + " onClick=
else sHTML = sHTML + ">
sHTML = sHTML + "</a>\\n" + "<a #
if (children >
sHTML = sHTML + " onDblClick=
sHTML = sHTML + ">" + ID + ": " + ResultSetX
if (children >
sHTML = sHTML + "<div id=
%>
<% i++;
}%>
<BODY>
<script>
var x = eval(
x
</script>
</BODY>
</HTML>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20522.html