国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > 建站經(jīng)驗(yàn) > 正文

asp_無(wú)限級(jí)分類支持js收縮伸展

2019-11-02 15:30:07
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

<!-- #include file="adoconn.asp" -->
<style>
.dotted_class{
 border-bottom:1px dotted #757575;
}
.dotted_class a{
 text-decoration:none;
 font-size:12px;
}
.td{
 font-size:12px;
}
</style>
<script language="javascript教程">
  function $$(id)
  {
 return document.getElementById(id);
  }

function fd(id,num)
{
 t=$$("d_"+id).src;
 if(t.indexOf("+.gif")>0)
 {
   t1="block";
   t2="images/-.gif";
 }
 else
 {
  t1="none";
  t2="images/+.gif";
 }
 for(i=1;i<=num;i++)
 {
  $$("c"+id+"_"+i).style.display=t1;
  $$("d_"+id).src=t2; 
 }
}

</script>

<%
catstr=""
depath=0
Call cat111(0,0,2)
%>
<TABLE width="500">
<TR>
 <TD><%=catstr%></TD>
</TR>
</TABLE>
<%
function cat111(parent_id,tid,stype)
set rs1 =server.createobject("adodb.recordset")
sql="select cat_name,cat_id,parent_id from category where parent_id="&parent_id&" and u_id="&stype&" and is_show=1 order by cat_order asc"
set rs1=conn.execute(sql)
If rs1.eof Then
Else
if(depath>2) then
 display2="none"    
else
 display2="block"
end if 
dim j
j=1
do while not rs1.eof
 cat_name1 = rs1("cat_name")
 cat_id1 = rs1("cat_id") 
 parent_id1=rs1("parent_id") 
 ******************下面是你要顯示的******************'
 m9=0
 sql2="select count(cat_id) as t from category where parent_id="&cat_id1&" and u_id="&stype&""   
 set rs2=server.createobject("adodb.recordset")
 set rs2=conn.execute(sql2)
 if not rs2.eof then
    m9=rs2("t")
 else
  m9=0 
 end if
 rs2.close
 
 if(depath<=2) then 
  mgif="images/-.gif"
  a="block"
 else
  if(m9>0) then
  mgif="images/+.gif"
  else
  mgif="images/-.gif"
  end if
  if(depath=4) Then  
   a="block"  
 

一個(gè)字網(wǎng)名[www.la240.com/html2017/1/36/]
; else 
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 阳泉市| 措美县| 亳州市| 长海县| 洪雅县| 伊川县| 隆化县| 盐边县| 朝阳市| 锡林浩特市| 甘洛县| 吴堡县| 曲阳县| 博乐市| 淳安县| 建湖县| 衡阳市| 桂平市| 正安县| 特克斯县| 海门市| 舒城县| 德庆县| 民勤县| 光山县| 大荔县| 霍邱县| 株洲市| 延川县| 瓦房店市| 右玉县| 泰州市| 北宁市| 酉阳| 长顺县| 灵石县| 桃园市| 台东市| 长白| 河东区| 蒙自县|