漂亮的滑动门
来源:互联网 发布:java attach api 编辑:程序博客网 时间:2024/04/29 22:43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
body
{
font-size:12px;
}
.normal
{
list-style: none; float: left;
padding: 5px 2px 2px 2px;
width: 90px; text-align :center ;
vertical-align :middle ;
cursor :pointer ;
border-bottom :solid 1px #9cd9f5;
border-right :solid 1px #9cd9f5;
background-color: #dee7f5;
border-collapse :separate ;
}
.selected
{
list-style: none;
float: left;
padding: 5px 2px 2px 2px;
width: 90px;
text-align :center ;
vertical-align :middle ;
cursor :pointer ;
border-bottom :solid 0px #9cd9f5;
border-right :solid 1px #9cd9f5;
background-color:#f8f8f8 ;
}
#divMainTab
{
border-left :solid 1px #9cd9f5;
border-top :solid 1px #9cd9f5;
float:left;
margin: 0px; padding: 0px
}
.divContent
{
width: 474px;
height: 400px;
clear: both;
border-bottom: solid 1px #9cd9f5;
border-left: solid 1px #9cd9f5;
border-right: solid 1px #9cd9f5;
}
a{
text-decoration: none;
color: #00ccff;
}
a:hover
{
text-decoration: underline;
color: #cc0000;
}
</style>
<script language="javascript" type="text/javascript">
function changeTab(index)
{
for (var i=1;i<=5;i++)
{
document.getElementById ("li_"+i).className ="normal";
document.getElementById ("li_"+index).className ="selected";
document.getElementById ("div"+i).style.display ="none";
}
//document.getElementById ("div1").innerText= "天铭班李然"+index;
document.getElementById ("div"+index).style.display ="block";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="divMainTab">
<ul style="list-style: none; margin: 0px; padding: 0px; border-collapse: collapse;">
<li id="li_1" class="selected" onmouseover="changeTab('1')"><a href="#">天铭班</a> </li>
<li id="li_2" class="normal" onmouseover="changeTab('2')"><a href="#">一班</a> </li>
<li id="li_3" class="normal" onmouseover="changeTab('3')"><a href="#">二班</a> </li>
<li id="li_4" class="normal" onmouseover="changeTab('4')"><a href="#">三班</a> </li>
<li id="li_5" class="normal" onmouseover="changeTab('5')"><a href="#">四班</a> </li>
</ul>
</div>
<div id="div1" style ="display :block" class ="divContent">
1号 这是天铭班
</div>
<div id="div2" style ="display :none" class ="divContent">
2号 这是一班
</div>
<div id="div3" style ="display :none" class ="divContent">
3号 这是二班
</div>
<div id="div4" style ="display :none" class ="divContent">
4号 这是三班
</div>
<div id="div5" style ="display :none" class ="divContent">
5号 这是四班
</div>
</div>
</form>
</body>
</html>
- 漂亮的滑动门
- JQuery实现漂亮的滑动门效果
- 漂亮的双滑动效果
- JS实现漂亮的淡蓝色滑动门效果代码
- 漂亮的左右滑动的案例
- mootools 滑动 很漂亮的效果
- 漂亮的JS图片滑动切换效果
- 一个漂亮的滑动条样式
- 带你实现漂亮的滑动卷尺
- DIV+CSS漂亮滑动门导航条
- Tabhost漂亮的自定义实现(背景随着选项卡滑动改变)
- Android漂亮的音乐歌词控件,仿网易云音乐滑动效果
- 经典滑动门-很漂亮-直接用- 附js和jQuery两版本
- 自制漂亮的select
- 漂亮的OWC图表
- 漂亮的下拉框
- 漂亮的女人
- 漂亮的女人 (ZT)
- 根据radio判断下拉框是否禁用
- J2ME图片缩放和透明效果
- 火狐安装wmlbrowser组件
- overflow和display的用法
- 关于电子化portfolio的一些需求收集
- 漂亮的滑动门
- J2ME WEB服务入门教程
- 只有两层节点且每个父节点只有一个子节点的简单折叠方法
- 数据库连接总结
- Java 设计模式 101
- olap4j Specification
- CDMA版iPhone恐成真 将亮相明年CES大展
- HTTP 错误 500.100 - 内部服务器错误 - ASP 错误 Internet 信息服务
- 数据结构排序算法总结