经典三行两列布局带隐藏导航功能和菜单折叠功能

      经典三行两列布局带隐藏导航功能和菜单折叠功能:

源代码如下:

Code
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
<title>Navigate Page</title>

    
<script language="javascript" type="text/jscript">
    
     
       
function showHideLeftPanel(obj)
       

            
var oStyle  = leftPanel.style; 
            oStyle.display 
== "none" ? oStyle.display = "" : oStyle.display = "none"
//             var oStyle = obj.parentElement.parentElement.parentElement.rows[1].style; 
//
            oStyle.display == "none" ? oStyle.display = "block" : oStyle.display = "none"; 
        }

        
        
function showHide(obj)
       
{            
            
var oStyle = obj.parentElement.parentElement.parentElement.rows[1].style; 
            oStyle.display 
== "none" ? oStyle.display = "block" : oStyle.display = "none"
        }

    
</script>

    
<style type="text/css">
        .style1
        
{}{
            width
: 100%;
            height
: 454px;
        
}

        .style2
        
{}{
            height
: 467px;
        
}

        .style3
        
{}{
            width
: 144px;
        
}

        .style4
        
{}{
            width
: 100%;
        
}

        .style5
        
{}{
            width
: 1px;
        
}

    
</style>
</head>
<body>
    
<form id="form1" runat="server">
    
<div>
        
<table class="style1" border="2">
            
<tr>
                
<td style="background-color: #CC00FF">
                    
&nbsp;</td>
            
</tr>
            
<tr>
                
<td class="style2">
                    
<table class="style1" border="2" style="height: 100%" width="100%">
                        
<tr>
                            
<td id="leftPanel" class="style3" valign="top" 
                                style
="background-color: #00FFFF">
                                
<table class="style4">
                                    
<tr>
                                        
<td style="background-color: #C0C0C0" onclick="JavaScript:showHide(this);">
                                            货仓
                                        
</td>
                                    
</tr>
                                    
<tr>
                                        
<td>
                                            
<table class="style4">
                                                
<tr>
                                                    
<td>
                                                        
&nbsp;&nbsp; 仓库收获&nbsp;
                                                    
</td>
                                                
</tr>
                                                
<tr>
                                                    
<td>
                                                        
&nbsp;&nbsp;&nbsp; 仓库入仓&nbsp;
                                                    
</td>
                                                
</tr>
                                            
</table>
                                        
</td>
                                    
</tr>
                                    
<tr>
                                        
<td valign="top" style="background-color: #FFFFFF">
                                            
&nbsp;
                                        
</td>
                                    
</tr>
                                
</table>
                                
<table class="style4">
                                    
<tr>
                                        
<td style="background-color: #C0C0C0" onclick="JavaScript:showHide(this);">
                                            会计
                                        
</td>
                                    
</tr>
                                    
<tr>
                                        
<td>
                                            
<table class="style4">
                                                
<tr>
                                                    
<td>
                                                        
&nbsp; &gt;会计月结&nbsp;
                                                    
</td>
                                                
</tr>
                                                
<tr>
                                                    
<td>
                                                        
&nbsp; &gt;&nbsp;会计对帐
                                                    
</td>
                                                
</tr>
                                            
</table>
                                        
</td>
                                    
</tr>
                                    
<tr>
                                        
<td>
                                            
&nbsp;
                                        
</td>
                                    
</tr>
                                
</table>
                            
</td>
                            
<td  class="style5">
                                
<href="JavaScript:showHideLeftPanel(this);">
                                    
<img height="50" src="images/Menu/box_topleft.gif" width="2" /></a>
                            
</td>
                            
<td style="background-color: #CC9900"> </td>
                        
</tr>
                    
</table>
                
</td>
            
</tr>
            
<tr>
                
<td style="background-color: #808080">
                    
&nbsp;</td>
            
</tr>
        
</table>
    
</div>
    
</form>
</body>
</html>

     

 

转载于:https://www.cnblogs.com/Tonyyang/archive/2008/01/15/1039462.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值