<script language="javascript">
var _tree=new Array();
var _Name=new Array();
var _Numb=new Array();
<%
dim rsTree,sqlTree
sqlTree="Select classID,Contenxt,sortNumber from [Tree] where classID=classID "
'sqlTree="Select t.[classID] as id,c.[Contenxt] as name from [Tree] as t Inner Join C_T as c on c.classID=t.classID "
'sqlTree=sqlTree&" Where t.[pass]=true Order by t.[sortNumber] asc"
'sqlTree="Select Contenxt,className from [Tree] where classID=classID"
set rsTree=conn.execute(sqlTree)
if(not rsTree.eof) then
dim ii:ii=0
do until rsTree.eof
%>
_tree[<%=ii%>]="<%=rsTree.fields(0).value%>";
_Name[<%=ii%>]="<%=rsTree.fields(1).value%>";
_Numb[<%=ii%>]="<%=rsTree.fields(2).value%>";
<%
rsTree.movenext
ii=ii+1
loop
end if
%>
function $(id){
return document.getElementById(id);
}
//获取对应的生产效益文字
function getContextInfos(){
var c=$("Tree_name1").value;
var findValu="1";
var getCCC="";
var f=false;
var i=0;
//查找
while(i<_tree.length&!f){
//alert("c="+c+",tree["+i+"]="+_tree[i]) ;
if(_tree[i]==c){
findValu=_tree[i];
getCCC=_Name[i];
getCCC1=_Numb[i];
f=true;
break;
}
i++;
}
if(f)
{
$("show_C_T_ContextInfos").innerHTML=getCCC;
$("show_C_T_ContextInfos1").innerHTML=getCCC1;
}
}
</script>
显示的
<a href="default.asp?id" ><div id="show_C_T_ContextInfos" class="TextCss"></div></a
这里 层 ID show_C_T_ContextInfos 就是显示 上面的$("show_C_T_ContextInfos").innerHTML=getCCC;
这里的show_C_T_ContextInfos 对应
现在问题是 我想把第一个弄成连接的参数传递 怎么写啊帮忙啊谢谢