谁能把下面两段代码给我结合起来,我搞不了,高手们帮帮忙
产品分类
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="Index-Left-Bot">
<tr>
<td height="22" bgcolor="#DEDEDE"><img src="Images/Products_Left_Title.gif" alt="信息检索" width="190" height="32" /></td>
</tr>
<tr>
<td height="84" align="center" bgcolor="#f2f2f2"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="Page-Left-01">
<tr>
<td height="12"></td>
<td></td>
<td colspan="2"></td>
</tr>
<%
set RsA = server.createobject("adodb.recordset")
RsA.source = "select id,parentid,content from deeptree where parentid=0 order by id"
RsA.open RsA.source,conn,1,1
if RsA.eof then response.write"还没有相关内容!"
while not RsA.eof
Pid=RsA("id")
%>
<tr>
<td width="30" height="21"> </td>
<td width="24"><img src="Images/Arrow-Page-01.gif" width="13" height="13" /></td>
<td colspan="2"><a href="ProductsListA.asp?id=<%=RsA("id")%>&Str=<%=RsA("content")%>"><%=RsA("content")%></a></td>
</tr>
<%
set RsB = server.createobject("adodb.recordset")
RsB.source = "select id,parentid,content from deeptree where parentid="&Pid&""
RsB.open RsB.source,conn,1,1
while not RsB.eof
%>
<tr>
<td height="21"> </td>
<td> </td>
<td width="24"><img src="Images/Arrow-Page-01.gif" width="13" height="13" /></td>
<td><a href="ProductsListB.asp?id=<%=RsB("id")%>&Str=<%=RsB("content")%>&Pid=<%=Pid%>&PStr=<%=RsA("content")%>"><%=RsB("content")%></a></td>
</tr>
<%
RsB.movenext
wend
RsB.close
set RsB=nothing
'========
RsA.movenext
wend
RsA.close
set RsA=nothing
%>
<tr>
<td height="12"></td>
<td></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
二级目录
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<table width="210" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class=lbfont height=30 style="cursor:hand; border-bottom:1px #ebebeb solid;" align=left onMouseOver=MM_showHideLayers('Layerf0','','show') onMouseOut=MM_showHideLayers('Layerf0','','hide')> <a href="xxx">baidu</a>
<div id=Layerf0 onMouseOver=MM_showHideLayers('Layerf0','','show') onMouseOut=MM_showHideLayers('Layerf0','','hide') style='position:absolute; width:180; height:31px; z-index:1; layer-background"-color-" border: 1px none #000000; visibility: hidden;'>
<table width=100% border=0 cellspacing=3 cellpadding=4 bgcolor=#ffffff style='border: 1px solid #666666;'>
<tr>
<td style='border-bottom: 1px solid #efefef;' class=lbfont onClick=Javascript:window.location='xxx'> <img src="images/lbtitle.jpg" align='absmiddle' border=0> 1234567</td>
</tr>
</table>
</div></td></tr>
</table>