http://www.codeproject.com/jscript/TabStripNoPostBack.asp
解决方案 »
- jQuery UI 组件Tabs demo代码中的不解
- 关于 js 无限级关联下拉选择
- Element.childElements(this)不能直接调用吗?
- 有人用过Yahoo Menu么
- 将数据库的数据写入select下拉框的函数
- 百度面试题,不点击a标签,但是a有点击后的标记
- 求救:怎样在asp界面添加excel到sql数据库,怎样把sql数据表导出为excel表??
- 谁有导航栏的源码呢
- 为什么mouse over最后的table时alert也会发生?
- 请问大家这个地方怎么样替换成ajax请求?
- 如何对整个页面或整个网站的<a>标记应用title属性?谢谢!!!
- 最后二十分,实现窗口上到处乱飞的一个广告,这个广告碰到屏幕要发出声音.
<head>
<title>Tab Demo</title>
<style type="text/css">
#tabHead,#tabMain { clear:both;margin:0px;padding:0px;height:10px;}
.tabName { width:100px;text-align:center;font-weight:bold;color:#333;width:100px;float:left;padding:4px;border:1px solid #333;border-bottom:0px;cursor:hand;}
.tabContent { width:400px;height:100px;border:1px solid #333;margin:0px;padding:4px;display:none;}
</style><script language="javascript">
<!--function initTab(id)
{
for(i=1;i<=3;i++)
{
if(i==id)
document.getElementById("div"+i).style.display="block";
else
document.getElementById("div"+i).style.display="none";
}
}
-->
</script>
</head><body onload="initTab(1)">
<div id="tabHead">
<div id="head1" class="tabName" onmouseover="initTab(1)">标签一</div>
<div id="head2" class="tabName" onmouseover="initTab(2)">标签二</div>
<div id="head3" class="tabName" onmouseover="initTab(3)">标签三</div>
</div>
<div id="tabMain">
<div id="div1" class="tabContent">
这是第一个标签的内容
</div>
<div id="div2" class="tabContent">
这是第二个标签的内容这是第二个标签的内容
</div>
<div id="div3" class="tabContent">
这是第三个标签的内容这是第三个标签的内容这是第三个标签的内容
</div>
</div>
</body>
</html>