请教一个菜单跳转的问题有两个下拉
有些细节可能需要你自己改一下,但大致是这样的:
function appendOption(ctrl,text,value){
var elOptNew = eateElement('option');
elOptNew。 text = text;
lue = value;
try{
d(elOptNew, null); // standards compliant; doesn't work in IE
}
catch(ex) {
d(elOptNew); // IE only
}
}
function stuffOptions(index){
var sb= tElementByI...全部
有些细节可能需要你自己改一下,但大致是这样的:
function appendOption(ctrl,text,value){
var elOptNew = eateElement('option');
elOptNew。
text = text;
lue = value;
try{
d(elOptNew, null); // standards compliant; doesn't work in IE
}
catch(ex) {
d(elOptNew); // IE only
}
}
function stuffOptions(index){
var sb= tElementById('sb');
if(sb==null) return;
while(sb。
length>0) move(sb。
length-1);
if(index==0){
appendOption(sb,"A",0);
appendOption(sb,"B",1);
appendOption(sb,"C",2);
}
else{
appendOption(sb,"D",0);
appendOption(sb,"E",1);
appendOption(sb,"F",2);
}
}
1
2
。收起