zoukankan
html css js c++ java
带隐藏功能的菜单导航
1.如图:
2.代码如下:
Code
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeBehind
=
"
Default.aspx.cs
"
Inherits
=
"
Leasear.LeaWeb.Default
"
%>
<
html
>
<
head
runat
="server"
>
<
title
>
Untitled Page
</
title
>
<
script
src
="inc/FineMessBox/js/common.js"
type
="text/javascript"
></
script
>
<
script
src
="inc/FineMessBox/js/subModal.js"
type
="text/javascript"
></
script
>
<
style
type
="text/css"
>
BODY
{
}
{
font-size
:
12px
;
font-family
:
"Verdana" , "Arial" , "细明体" , "sans-serif"
;
}
table
{
}
{
font-size
:
12px
;
font-family
:
"Verdana" , "Arial" , "细明体" , "sans-serif"
;
}
</
style
>
</
head
>
<
body
scroll
="no"
onbeforeunload
="return CloseEvent();"
leftmargin
="0"
topmargin
="0"
marginheight
="0"
marginwidth
="0"
>
<
form
id
="form1"
runat
="server"
>
<
div
>
<
table
id
="TableMain"
border
="0"
cellspacing
="0"
cellpadding
="0"
width
="100%"
height
="100%"
>
<
tr
>
<
td
id
="Header"
width
="100%"
height
="25"
colspan
="3"
style
="border-bottom: 1px solid #000000"
>
Header
</
td
>
</
tr
>
<
tr
>
<
td
id
="frmTitle"
nowrap
="nowrap"
valign
="middle"
align
="center"
width
="180"
style
="height: auto;
border-right: 1px solid #000000"
>
<
iframe
name
="BoardTitle"
style
="height: 100%; visibility: inherit; 180; z-index: 2"
scrolling
="auto"
frameborder
="0"
src
="Left.aspx"
></
iframe
>
</
td
>
<
td
style
=" 7pt"
bgcolor
="#7898A8"
width
="10"
title
="关闭/打开左栏"
>
<
img
border
="0"
src
="images/Menu/close.gif"
id
="menuimg"
alt
="隐藏左栏"
onmouseover
="javascript: menuonmouseover();"
onmouseout
="javascript: menuonmouseout();"
onclick
="javascript:switchSysBar()"
style
="cursor: hand"
width
="11"
height
="76"
/>
</
td
>
<
td
style
=" 100%"
>
<
iframe
id
="mainFrame"
name
="mainFrame"
style
="height: 100%; visibility: inherit;
100%; z-index: 1"
scrolling
="auto"
frameborder
="0"
src
="Right.aspx"
></
iframe
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
="3"
height
="20"
>
<
table
cellpadding
="0"
cellspacing
="0"
border
="0"
height
="20"
width
="100%"
>
<
tr
bgcolor
="Black"
>
<
td
width
="200px"
>
</
td
>
<
td
style
="padding-right: 50px"
>
<
button
name
="xsubmit"
class
="down_tools_button"
onclick
="javascript:showPopWin('About','About.aspx',510, 170, null,false)"
>
版本信息
</
button
>
<
button
name
="xsubmit"
class
="down_tools_button"
onclick
="javascript: window.mainFrame.location.href='Right.aspx'"
>
回到首页
</
button
>
<
button
name
="xsubmit"
class
="down_tools_button"
onclick
="javascript: window.top.location.href = 'Logout.aspx'"
>
退出系统
</
button
>
<
button
name
="xsubmit"
class
="down_tools_button"
onclick
="javascript:window.open('http://framework.supesoft.com/help/');"
>
帮助手册
</
button
>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
</
table
>
</
div
>
</
form
>
</
body
>
</
html
>
<
script
language
="javascript"
type
="text/javascript"
>
function
switchSysBar()
{
if
(document.all(
"
frmTitle
"
).style.display
==
"
none
"
)
{
document.all(
"
frmTitle
"
).style.display
=
""
menuimg.src
=
"
images/Menu/close.gif
"
;
menuimg.alt
=
"
隐藏左栏
"
}
else
{
document.all(
"
frmTitle
"
).style.display
=
"
none
"
menuimg.src
=
"
images/Menu/open.gif
"
;
menuimg.alt
=
"
开启左栏
"
}
}
function
menuonmouseover()
{
if
(document.all(
"
frmTitle
"
).style.display
==
"
none
"
)
{
menuimg.src
=
"
images/Menu/open_on.gif
"
;
}
else
{
menuimg.src
=
"
images/Menu/close_on.gif
"
;
}
}
function
menuonmouseout()
{
if
(document.all(
"
frmTitle
"
).style.display
==
"
none
"
)
{
menuimg.src
=
"
images/Menu/open.gif
"
;
}
else
{
menuimg.src
=
"
images/Menu/close.gif
"
;
}
}
if
(top
!=
self)
{
top.location.href
=
"
default.aspx
"
;
}
var
gDefaultLogin
=
"
inc/finemessbox/loading.html
"
;
</
script
>
欢迎转载,转载请注明出处:http://www.cnblogs.com/Tonyyang/
查看全文
相关阅读:
windown 下最简单的安装mysql方式
mac 重置mysql密码
开发过程中用到的软件
Springboot 热部署问题。亲测可用。
时间转换~
java 流转换BASE64的一些问题
SpringMvc 使用Thumbnails压缩图片
SpringMVC Get请求传集合,前端"异步"下载excel 附SpringMVC 后台接受集合
Mac 笔记本 开发日记
RabbitMQ入门:路由(Routing)
原文地址:https://www.cnblogs.com/Tonyyang/p/1044652.html
最新文章
合并两个排序的链表
反转链表
链表中倒数第k个结点
调整数组顺序使奇数位于偶数前面
在O(1) 时间删除链表结点
打印1到最大的n位数
数值的整数次方
裴波那契数列
旋转数组的最小数字
oracle创建新的连接(表空间?数据库?)
热门文章
xml文件节点读取时,selectNodes总是在根节点下查找的问题
jsp中 url传参到后台的参数获取
webService cxf学习
idea中 ClassNotFoundException报错问题
时间格式的时间 转json的时候变成正常的string时间20170519
compareTo)--list 根据某字段排序
select2下拉内容获取后台数据
jquery同级遍历
jsp导出的word默认打开是web视图,希望是页面视图
Linux 重装系统 连接不上的问题
Copyright © 2011-2022 走看看