<html>
<head>
<meta http
<meta content=
<title>琥珀網
<style type=
body
{
font
font
}
</style>
<script language=
function GetResult(str
{
/*
*
* GetResult(str)
* 功能:通過XMLHTTP發送請求
* 參數:str
* 實例:GetResult(document
*
*/
//定義菜單級數
var MenuIdArr
MenuIdArr= new Array()
MenuFieldArr=new Array()
MenuClass=
MenuIdArr[
MenuIdArr[
MenuIdArr[
MenuIdArr[
MenuFieldArr[
MenuFieldArr[
MenuFieldArr[
MenuFieldArr[
if (window
http_request = new XMLHttpRequest();
} else if (window
http_request = new ActiveXObject(
}
var linkurl=
(
(null);
//服務器端處理返回的是經過escape編碼的字符串
//在頁面顯示服務器查詢結果
var returntxt=unescape()
if(returntxt
{document
else
{document
//通過XMLHTTP返回數據
//BuildSel(returntxt
BuildSel(returntxt
//============更改下下級以下菜單為空==============
var kkk
for(kkk=classid+
{
submenu=document
submenu
submenu
}
}
function BuildSel(str
{
/*
*
* BuildSel(str
* 功能:通過str構建Select
* 參數:str
* 也可為
* 參數:sel
* 實例:BuildSel(unescape(oBao
*
*/
//先清空原來的數據
sel
var arrstr = new Array();
arrstr = str
//開始構建新的Select
sel
if(str
{
for(var i=
{
//分割字符串
var subarrstr=new Array
subarrstr=arrstr[i]
//生成下級菜單
sel
}
sel
}
}
</script>
<form name=
<table width=
<tr bgcolor=
<td height=
</tr>
<tr bgcolor=
<td width=
<td><select name=
<option value=
<option value=
<option value=
</select></td>
</tr>
<tr bgcolor=
<td height=
<td><select name=
<option value=
</select></td>
</tr>
<tr bgcolor=
<td height=
<td><select name=
<option value=
</select></td>
</tr>
<tr bgcolor=
<td height=
<td><select name=
<option value=
</select></td>
</tr>
<tr bgcolor=
<td height=
</tr>
</table>
<br>
<table width=
<tr>
<td height=
</tr>
<tr>
<td height=
</tr>
<tr>
<td height=
</tr>
<tr>
<td height=
</tr>
<tr>
<td height=
</tr>
<tr>
<td height=
</tr>
</table>
<script language=
GetResult(document
</script>
</form>
</body>
</html>
From:http://tw.wingwit.com/Article/program/net/201311/12909.html