三级树形菜单,之前有发过一个那个和这个还是有区别的.表结构仍然是我一直发的那样的.注意,不能打开二级类

就是说只能打开大类和三级类.当有类别无三级类时候,就不适用了.

 三级动态树形菜单

三级动态树形菜单<!--#include file="inc/conn.asp"-->
三级动态树形菜单
三级动态树形菜单
三级动态树形菜单
三级动态树形菜单
三级动态树形菜单      
<TABLE width=190 >
三级动态树形菜单       
三级动态树形菜单              
<TR>
三级动态树形菜单                
<TD width="100%">
三级动态树形菜单                  
三级动态树形菜单                
三级动态树形菜单                
三级动态树形菜单                 
<%
三级动态树形菜单        
set rsBigClass1=server.CreateObject("adodb.recordset")
三级动态树形菜单rsBigClass1.open 
"Select * From BigClass",conn,1,1
三级动态树形菜单    i
=100
三级动态树形菜单
三级动态树形菜单    
do while not rsBigClass1.eof
三级动态树形菜单    i
=i+100
三级动态树形菜单%
>
三级动态树形菜单                
三级动态树形菜单                  
<TABLE id=LeftMenu_<%=i%>_off cellSpacing=0 cellPadding=0  
三级动态树形菜单                  width
="100%">
三级动态树形菜单                    
<TBODY>
三级动态树形菜单                    
<TR class=tree_button_title 
三级动态树形菜单                    onmouseover
="this.className='tree_button_title_on';" 
三级动态树形菜单                    onclick
="document.getElementById('LeftMenu_<%=i%>_on').style.display=(document.getElementById('LeftMenu_<%=i%>_on').style.display == 'none')?'':'none';document.getElementById('LeftMenu_<%=i%>_off').style.display=(document.getElementById('LeftMenu_<%=i%>_off').style.display=='none')?'':'none'" 
三级动态树形菜单                    onmouseout
="this.className='tree_button_title'">
三级动态树形菜单                      
<TD><B><
三级动态树形菜单                        href
="Product.asp?bigclassname=<%=rsBigClass1("BigClassName")%>" 
三级动态树形菜单                        
><%=rsbigclass1("bigclassname")%></A></B>&nbsp;&nbsp;</TD>
三级动态树形菜单                      
<TD align=right><IMG 
三级动态树形菜单                        src
="newegg_menu/plus.gif"></TD></TR></TBODY></TABLE>
三级动态树形菜单                        
三级动态树形菜单                
三级动态树形菜单                        
三级动态树形菜单                  
<TABLE id=LeftMenu_<%=i%>_on style="DISPLAY: none" cellSpacing=0 
三级动态树形菜单                  cellPadding
=0 width="100%">                    <TBODY>
三级动态树形菜单                    
三级动态树形菜单                    
<TR>
三级动态树形菜单                      
<TD>
三级动态树形菜单                      
三级动态树形菜单                      
三级动态树形菜单                      
三级动态树形菜单                        
<TABLE cellSpacing=0 cellPadding=0 width="100%">
三级动态树形菜单                          
<TBODY>
三级动态树形菜单                          
<TR class=tree_button_title 
三级动态树形菜单                          onmouseover
="this.className='tree_button_title_on';" 
三级动态树形菜单                          onclick
="document.getElementById('LeftMenu_<%=i%>_on').style.display=(document.getElementById('LeftMenu_<%=i%>_on').style.display == 'none')?'':'none';document.getElementById('LeftMenu_<%=i%>_off').style.display=(document.getElementById('LeftMenu_<%=i%>_off').style.display=='none')?'':'none'" 
三级动态树形菜单                          onmouseout
="this.className='tree_button_title'">
三级动态树形菜单                            
<TD><B><
三级动态树形菜单                              href
="Product.asp?bigclassname=<%=rsBigClass1("BigClassName")%>" 
三级动态树形菜单                              
><%=rsbigclass1("bigclassname")%></A></B>&nbsp;&nbsp;</TD>
三级动态树形菜单                            
<TD align=right><IMG 
三级动态树形菜单                              src
="newegg_menu/minus.gif"></TD></TR></TBODY></TABLE>
三级动态树形菜单                    
<%
三级动态树形菜单      
set rsSmallClass1=server.CreateObject("adodb.recordset")
三级动态树形菜单      rsSmallClass1.open 
"Select * From SmallClass Where BigClassName='" & rsBigClass1("BigClassName"& "'",conn,1,1
三级动态树形菜单      
if not(rsSmallClass1.bof and rsSmallClass1.eof) then
三级动态树形菜单       j
=33
三级动态树形菜单        
do while not rsSmallClass1.eof
三级动态树形菜单        j
=j+100
三级动态树形菜单
三级动态树形菜单    %
>        
三级动态树形菜单                     
<!--三级类关闭时候-->
三级动态树形菜单                       
<TABLE id=LeftMenu_<%=i%>_<%=j%>_off cellSpacing=0 
三级动态树形菜单                        cellPadding
=0 width="100%" border=0>
三级动态树形菜单                          
<TBODY>
三级动态树形菜单                          
<TR>
三级动态树形菜单                            
<TD class=tree_button 
三级动态树形菜单                            onmouseover
="this.className='tree_button_on';" 
三级动态树形菜单                            onclick
="document.getElementById('LeftMenu_<%=i%>_<%=j%>_on').style.display=(document.getElementById('LeftMenu_<%=i%>_<%=j%>_on').style.display == 'none')?'':'none';document.getElementById('LeftMenu_<%=i%>_<%=j%>_off').style.display=(document.getElementById('LeftMenu_<%=i%>_<%=j%>_off').style.display=='none')?'':'none'" 
三级动态树形菜单                            onmouseout
="this.className='tree_button'"><IMG 
三级动态树形菜单                              height
=6 
三级动态树形菜单                              src
="newegg_menu/arrow_right.gif" 
三级动态树形菜单                              width
=5 border=0>&nbsp;<FONT 
三级动态树形菜单                              size
=+0><%=rsSmallClass1("SmallClassName")%></FONT>&nbsp;&nbsp;</TD></TR></TBODY></TABLE>
三级动态树形菜单            
三级动态树形菜单                              
三级动态树形菜单                    
<!--三级类关闭时候-->
三级动态树形菜单                    
三级动态树形菜单                    
三级动态树形菜单                    
三级动态树形菜单                    
三级动态树形菜单                        
三级动态树形菜单                        
<!--三级类展开时候-->     
三级动态树形菜单                        
<TABLE id=LeftMenu_<%=i%>_<%=j%>_on style="DISPLAY: none" 
三级动态树形菜单                        cellSpacing
=0 cellPadding=0 width="100%" border=0>
三级动态树形菜单                            
<TBODY>
三级动态树形菜单                            
<TR>
三级动态树形菜单                            
<TD>
三级动态树形菜单                              
<TABLE cellSpacing=0 cellPadding=0 width="100%" 
三级动态树形菜单                              border
=0>
三级动态树形菜单                                
<TBODY>
三级动态树形菜单                                
<TR>
三级动态树形菜单
三级动态树形菜单                                
<TD class=tree_button 
三级动态树形菜单                                onmouseover
="this.className='tree_button_on';" 
三级动态树形菜单                                onclick
="document.getElementById('LeftMenu_<%=i%>_<%=j%>_on').style.display=(document.getElementById('LeftMenu_<%=i%>_<%=j%>_on').style.display == 'none')?'':'none';document.getElementById('LeftMenu_<%=i%>_<%=j%>_off').style.display=(document.getElementById('LeftMenu_<%=i%>_<%=j%>_off').style.display=='none')?'':'none'" 
三级动态树形菜单                                onmouseout
="this.className='tree_button'"><IMG 
三级动态树形菜单                                height
=6 
三级动态树形菜单                                src
="newegg_menu/arrow_down.gif" 
三级动态树形菜单                                width
=5 border=0>&nbsp;<FONT 
三级动态树形菜单                                size
=+0><%=rsSmallClass1("SmallClassName")%></FONT>&nbsp;&nbsp;</TD></TR></TBODY></TABLE>
三级动态树形菜单                                          
<!--三级类-->
三级动态树形菜单                                          
<TABLE cellSpacing=0 cellPadding=0 width="100%" 
三级动态树形菜单                                              border
=0>
三级动态树形菜单                                            
<TBODY>
三级动态树形菜单                                               
<TR>
三级动态树形菜单                                            
<TD class=tree_button_content>
三级动态树形菜单                                            
<%sql3="select * from minclass where BigClassName='" & rsBigClass1("BigClassName"& "' and smallclassname='" & rsSmallClass1("SmallClassName"& "'"
三级动态树形菜单       
set rs3=Server.CreateObject("adodb.recordset")
三级动态树形菜单       rs3.Open sql3,conn,
1,1 
三级动态树形菜单    
do while not rs3.eof%>
三级动态树形菜单                                
三级动态树形菜单                                
<DIV class=tree_button_list><
三级动态树形菜单                                href
="Product.asp?bigclassname=<%=rsBigClass1("BigClassName")%>&smallclassname=<%=rsSmallClass1("SmallClassName")%>&minclassname=<%=rs3("minclassname")%>"><%=rs3("minclassname")%></A></DIV>
三级动态树形菜单                               
<%
三级动态树形菜单                               rs3.movenext
三级动态树形菜单                               
loop
三级动态树形菜单                               %
>
三级动态树形菜单                                
三级动态树形菜单                                            
</TD>
三级动态树形菜单                                            
</TR>
三级动态树形菜单                                            
</TBODY>
三级动态树形菜单                                        
</TABLE>
三级动态树形菜单                                        
<!--三级类-->                            
三级动态树形菜单                                
</TD></TR></TBODY>
三级动态树形菜单                            
</TABLE>
三级动态树形菜单                            
<!--三级类展开时候-->    
三级动态树形菜单                            
<%rsSmallClass1.movenext
三级动态树形菜单        
loop
三级动态树形菜单      
end if
三级动态树形菜单      rsSmallClass1.close
三级动态树形菜单      
set rsSmallClass1=nothing    %>
三级动态树形菜单                            
</TD>
三级动态树形菜单                            
</TR>
三级动态树形菜单                            
</TBODY>
三级动态树形菜单                        
</TABLE>
三级动态树形菜单                        
三级动态树形菜单                                
三级动态树形菜单                                
三级动态树形菜单                        
三级动态树形菜单                                
<%
三级动态树形菜单    rsBigClass1.movenext
三级动态树形菜单    
三级动态树形菜单    
loop
三级动态树形菜单    rsbigclass1.close
三级动态树形菜单    
set rsbigclass1=nothing
三级动态树形菜单%
>            
三级动态树形菜单                                
</TD></TR>
三级动态树形菜单                                
三级动态树形菜单                            
</TABLE>
三级动态树形菜单                            
http://www.corange.cn/archives/2007/03/24.html

相关文章:

  • 2021-05-07
  • 2022-01-31
  • 2022-12-23
  • 2021-10-21
  • 2021-09-06
  • 2021-12-30
  • 2022-12-23
  • 2021-11-14
猜你喜欢
  • 2021-08-25
  • 2022-01-23
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案