fieldset实现子菜单

<% @   page contentType = " text/html;   charset=gb2312 "  language = " java "
    import
= " java.sql.* "  errorPage = " error.jsp " %>
< html >
< head >
< title > Untitled Document </ title >
< meta  http-equiv ="Content-Type"  content ="text/html;   charset=gb2312"   />

< script  language ="JavaScript1.2" >   <!-- 显示出子菜单 -->
  
var    head = " photos/display:'' "    
  img1
= new    Image()   
  img1.src
= " photos/fold.gif "    
  img2
= new    Image()   
  img2.src
= " photos/open.gif "    
  
function    change(){   
      
if ( ! document.all)   
            
return    
      
if    (event.srcElement.id == " foldheader " )   {   
            
var    srcIndex    =    event.srcElement.sourceIndex   
            
var    nested    =    document.all[srcIndex + 1 ]   
            
if    (nested.style.display == " none " )   {   
                  nested.style.display
= ''    
                  event.srcElement.style.liststyleImage
= " url(photos/open.gif) "    
            }   
            
else    {   
                  nested.style.display
= " none "    
                  event.srcElement.style.liststyleImage
= " url(photos/fold.gif) "    
            }   
      }   
  }   
  document.onclick
= change    
  
</ script >

< style  type ="text/css" >  <!--css样式-->     
  li   
{    
  font-family
:    "宋体",   "新宋体" ;    
  font-size
:    9pt ;    
  line-height
:    13pt ;    
  margin-right
:    5px ;    
  cursor
:    hand ;    
  
}    
  #foldheader
{    
  cursor
: hand ;    
  list-style-image
: url(photos/fold.gif) ;    
  font-family
:    "宋体",   "新宋体" ;    
  font-size
:    10pt ;    
  
}    
  #foldinglist
{    
  list-style-image
: url(photos/list.gif) ;    
  font-family
:    "宋体",   "新宋体" ;    
  font-size
:    9pt ;    
  
}    
  BODY   
{    
  SCROLLBAR-FACE-COLOR
:    #6699CC ;    
  SCROLLBAR-HIGHLIGHT-COLOR
:    #A6C4E1 ;    
  SCROLLBAR-SHADOW-COLOR
:    #A6C4E1 ;    
  SCROLLBAR-3DLIGHT-COLOR
:    #A6C4E1 ;    
  SCROLLBAR-ARROW-COLOR
:      #A6C4E1 ;    
  SCROLLBAR-TRACK-COLOR
:    #A6C4E1 ;    
  SCROLLBAR-DARKSHADOW-COLOR
:    #A6C4E1 ;    
  
}    
    
  A                 
{    text-decoration : none ;     }    
  A:link               
{    text-decoration : none ;      color :    #000066 ;       }    
  A:visited         
{    text-decoration : none ;      color :    #000033 ;       }    
  A:hover             
{    
  text-decoration
: underline ;    
  color
:    #FF0000 ;    
  
}    
  
</ style >


</ head >

< body  bgcolor ="#CBDCED"  leftmargin ="3"  topmargin ="0" >

< table  width ="15%"  cellpadding ="0"  cellspacing ="0"  frame ="void"     align ="left" >< br >< br >< br >< br >< br >
    
< tr >
        
< td >
            
< fieldset  style ="width:100%"  align ="left" >< legend >< href =""
                target
="_blank" >< font  size ="2" >  天时软件  </ font ></ a ></ legend >
            
< dl  class ="pt12normal" >
                
< li  id ="foldheader" > 内容管理 </ li >
                
< dl  id ="foldinglist"  style ="display:none" >
                    
< li >< href ="customer_add.jsp"  target ="mainFrame" > 警情通报 </ a ></ li >
                    
< li >< href ="customer_query.jsp"  target ="mainFrame" > 内容管理 </ a ></ li >
                    
< li >< href ="menu.jsp#"  onClick ="accountcust()" >  客户统计 </ a ></ li >
                
</ dl >
             
< li    id ="foldheader" >  系统管理 </ li >    
            
< dl    id ="foldinglist"    style ="display:none" >    
                
< li >< a    href ="contact_add.jsp"    target ="mainFrame"    class =black > 查看日志 </ a ></ li >    
            
</ dl >  
                    
< li  id ="foldheader" > 网站管理 </ li >
                
< dl  id ="foldinglist"  style ="display:none" >
                    
< li >< href ="customer_add.jsp"  target ="mainFrame" > 网站地图 </ a ></ li >
                
</ dl >
 


            
</ fieldset >
        
</ td >
    
</ tr >
</ table >
</ body >
</ html >
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值