JS文件:
document.onmouseover = TabOver;
document.onmouseout = TabOut;
document.onmousedown = TabDown;
document.onmouseup = TabUp;var eOld = null;function TabOver() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button") {
eSrc.className = "tab-button2";
}
if (eSrc.className == "tab-button4") {
eSrc.className = "tab-button3";
}
}
function TabOut() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button2") {
eSrc.className = "tab-button";
}
if (eSrc.className == "tab-button3") {
eSrc.className = "tab-button4";
}
}
function TabDown() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button2") {
eSrc.className = "tab-button3";
}
}
function TabUp() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button3") {
if (eOld != null) {
eOld.className = "tab-button";
var eTxt2 = eval("txt" + eOld.id)
eTxt2.style.display = "none";
}
eOld = eSrc;
var eTxt = eval("txt" + eSrc.id)
eSrc.className = "tab-button3";
eTxt.style.display = "";
}
}
function setActiveTab(eSrc) {
eOld = eSrc;
eOld.className = "tab-button4"
var eTxt = eval("txt" + eOld.id)
eTxt.style.display = "";
}
document.onmouseover = TabOver;
document.onmouseout = TabOut;
document.onmousedown = TabDown;
document.onmouseup = TabUp;var eOld = null;function TabOver() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button") {
eSrc.className = "tab-button2";
}
if (eSrc.className == "tab-button4") {
eSrc.className = "tab-button3";
}
}
function TabOut() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button2") {
eSrc.className = "tab-button";
}
if (eSrc.className == "tab-button3") {
eSrc.className = "tab-button4";
}
}
function TabDown() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button2") {
eSrc.className = "tab-button3";
}
}
function TabUp() {
var eSrc = window.event.srcElement;
if (eSrc.className == "tab-button3") {
if (eOld != null) {
eOld.className = "tab-button";
var eTxt2 = eval("txt" + eOld.id)
eTxt2.style.display = "none";
}
eOld = eSrc;
var eTxt = eval("txt" + eSrc.id)
eSrc.className = "tab-button3";
eTxt.style.display = "";
}
}
function setActiveTab(eSrc) {
eOld = eSrc;
eOld.className = "tab-button4"
var eTxt = eval("txt" + eOld.id)
eTxt.style.display = "";
}
解决方案 »
- 取字符
- 各位帮忙看一下这个注册模块
- 如何在dataGrid属性设置中将多表中的某些字段设为绑定列?
- .net调用java注册组件问题
- 同样的程序为什么在vb.net中可以运行,放在web(asp.net)中却不行??帮帮菜鸟,非常感谢!
- freetextbox可以自动换行吗?就是横行滚动条不要出现!
- 如何update我的dataset)???---waiting!!!
- asp.net能调用httpservelet么?
- 怎么在XP下一个网卡上同时使用两个IP?
- 关于ASP.Net的几个问题(命名空间,Application和Session变量在类中的使用)
- Calendar使用的一点迷惑,简单,但就是想不通
- 怎么修改文件名?比强从1.txt改成2.txt?用C#在ASP.NET中?
.tab-table {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND: none transparent scroll repeat 0% 0%; FONT: menu; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
.tab-button {
BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; BACKGROUND: buttonface; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 70px; CURSOR: nw-resize; PADDING-TOP: 1px; BORDER-BOTTOM: buttonhighlight 1px solid; HEIGHT: 10px
}
.tab-button2 {
BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; BACKGROUND: buttonface; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 70px; CURSOR: nw-resize; COLOR: blue; PADDING-TOP: 1px; BORDER-BOTTOM: buttonhighlight 1px solid; HEIGHT: 10px
}
.tab-button3 {
BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; BACKGROUND: buttonface; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 70px; CURSOR: nw-resize; COLOR: blue; BORDER-BOTTOM: buttonface 1px solid; HEIGHT: 10px
}
.tab-button4 {
BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; BACKGROUND: buttonface; BORDER-LEFT: buttonhighlight 1px solid; WIDTH: 70px; CURSOR: nw-resize; BORDER-BOTTOM: buttonface 1px solid; HEIGHT: 10px
}
.tab-body {
BORDER-RIGHT: buttonshadow 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: buttonhighlight 0px solid; PADDING-LEFT: 1px; BACKGROUND: buttonface; PADDING-BOTTOM: 1px; BORDER-LEFT: buttonhighlight 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: buttonshadow 1px solid
}
<SCRIPT src="oh100欢迎您!.files/tabstrip.js" type=text/javascript></SCRIPT>
<LINK href="oh100欢迎您!.files/tabstrip.css" type=text/css rel=stylesheet>
<TABLE class=tab-table height=5 cellSpacing=1 cellPadding=0 width="100%"
border=0> <TR>
<TD class=tab-button id=tab1 align=middle width=109><A
href="http://www.oh100.com/index.htm" target=main><IMG
src="oh100欢迎您!.files/home1.gif" border=0></A>oh100首页</TD>
<TD class=tab-button id=tab2 align=middle width=109>报栏</TD>
</TR>
<TR>
<TD class=tab-body colSpan=12>
<DIV id=txttab1 style="DISPLAY: none" align=center>
<DIV id=linkTitle style="VISIBILITY: hidden; POSITION: absolute"></DIV><A
onmouseover="showTitle(this,event,'oh100首页')" onmouseout=hideTitle()
href="http://www.oh100.com/index.htm"
target=main>oh100首页</A> <A
onmouseover="showTitle(this,event,'oh100简介')" onmouseout=hideTitle()
href="http://www.oh100.com/number_one/about/intro.htm"
target=main>关于我们</A> <A
onmouseover="showTitle(this,event,'oh100业务范围')" onmouseout=hideTitle()
href="http://www.oh100.com/number_one/about/yu.htm" target=main>业务范围</A>
</DIV>
<DIV id=txttab2 style="DISPLAY: none" align=center>
</DIV></TD></TR></TBODY></TABLE>