国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 内黄县| 依兰县| 云梦县| 万盛区| 浮山县| 深水埗区| 阳西县| 株洲市| 广丰县| 林口县| 昌吉市| 洱源县| 萨嘎县| 玛纳斯县| 平利县| 延安市| 综艺| 府谷县| 丹阳市| 盐池县| 平阴县| 玛沁县| 赣州市| 靖边县| 句容市| 邹城市| 叶城县| 天柱县| 资中县| 平利县| 丹巴县| 沧州市| 长治县| 长春市| 鄂托克前旗| 津市市| 新宾| 博乐市| 右玉县| 武强县| 门头沟区|