关联下拉列表《谢谢!》

来源:百度知道 编辑:UC知道 时间:2024/05/06 00:19:58
比如说:
一级分类: 梦幻西游 传奇
二级子菜单有: 重庆枇杷山 湖南橘子洲 86区

梦幻西游—>重庆枇杷山和湖南橘子洲
传奇—>86区

我要怎么弄才可以:在第一个下拉菜单中选择梦幻西游。第二个下拉菜单中就只出现 重庆枇杷山和湖南橘子洲。同样如果我在第一个中选择了传奇。第二个就只出现86区。。。。

该怎么弄??? VBScript的弄法!谢谢了!
一级分类(梦幻西游)在表 Game ClassName字段中。二级分类(重庆枇杷山)在表Area AreaName字段中。Area表中的 ClassId与Game表中的Id字段关联。请给出详细代码!谢谢。。。解决了再加分!谢谢了谢谢了!!!
请把数据字段加进去好不???这样看不是很明白呀!

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style>
body,select
{
font-size:9pt;
font-family:Verdana;
}
a
{
color:red;
text-decoration:none;
}
a:hover{
text-decoration:underline;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Dsy()
{
this.Items = {};
}
Dsy.prototype.add = function(id,iArray)
{
this.Items[id] = iArray;
}
Dsy.prototype.Exists = function(id)
{
if(typeof(this.Items[id]) == "undefined") return false;
return true;
}

function change(v){
var str="0";
for(i=0;i<v;i++){ str+=("_"+(document.getElementById(s[i]).selectedIndex-1));};
var ss=document.getElementById(s[v]);