急!!!!在javascript中如何实现活页夹的效果 用层可以的就是隐藏一些,显示另一些dw里边可以不编程实现的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>TabPages</title><style>.tab{border:1 solid #000000;border-top:0}.menu{border:1 solid #000000;border-bottom:0;background-color:buttonface;text-align:center;font-weight:bold;font-size:12px;cursor:default;}</style></head><!--********By Fason(2003-5-24)***********--><body><script defer>function expand(o){var i=o.cellIndexfor(j=0;j<4;j++){eval("tabpage"+j).style.display='none'eval("menu"+j).style.cssText="border:1 solid #000000"}eval("tabpage"+i).style.display=''o.style.cssText="border-bottom:0"}expand(menu0)</script><table border="0" width="200" cellspacing="0" cellpadding="0" class="tab"> <tr> <td width="25%" class="menu" id=menu0 onclick="expand(this)">tab1</td> <td width="25%" class="menu" id=menu1 onclick="expand(this)">tab2</td> <td width="25%" class="menu" id=menu2 onclick="expand(this)">tab3</td> <td width="25%" class="menu" id=menu3 onclick="expand(this)">tab4</td> </tr> <tr> <td width="100%" colspan="4" height="200" bgcolor="buttonface"> <table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage0> <tr> <td width="100%">你好,我是Fason</td> </tr> </table> <table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage1 style="display:none"> <tr> <td width="100%">这个是简单版</td> </tr> </table> <table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage2 style="display:none"> <tr> <td width="100%">扩展性不是很好</td> </tr> </table> <table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage3 style="display:none"> <tr> <td width="100%">大家多多改善!</td> </tr> </table> </td> </tr></table></body></html>也有现成的控件http://www.csdn.net/Develop/Read_Article.asp?Id=15124 利用JS保持地址栏不变和语言跳转, 功能实现, 但细节不完美, 求解. 新人提问,jquery的选择问题。。。 请教大师们,js和jquery如何获得一个<select>控件的值呢? JavaScript常见正则表达式 正则问题 如何設置dropdownlist的邊框及滾動條的顔色?在線等 关于 angular js 请教js操作frame的问题。。 请问! 表格被提交,然后重定向去新页面。求解~ 怎樣將字符串轉變對象........... (up有分)如何用JavaScript实现表格的自动计算和自动增删行?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>TabPages</title>
<style>
.tab{border:1 solid #000000;border-top:0}
.menu{
border:1 solid #000000;border-bottom:0;background-color:buttonface;
text-align:center;font-weight:bold;font-size:12px;cursor:default;
}
</style>
</head>
<!--
********By Fason(2003-5-24)***********
-->
<body>
<script defer>
function expand(o){
var i=o.cellIndex
for(j=0;j<4;j++){
eval("tabpage"+j).style.display='none'
eval("menu"+j).style.cssText="border:1 solid #000000"
}
eval("tabpage"+i).style.display=''
o.style.cssText="border-bottom:0"
}
expand(menu0)
</script>
<table border="0" width="200" cellspacing="0" cellpadding="0" class="tab">
<tr>
<td width="25%" class="menu" id=menu0 onclick="expand(this)">tab1</td>
<td width="25%" class="menu" id=menu1 onclick="expand(this)">tab2</td>
<td width="25%" class="menu" id=menu2 onclick="expand(this)">tab3</td>
<td width="25%" class="menu" id=menu3 onclick="expand(this)">tab4</td>
</tr>
<tr>
<td width="100%" colspan="4" height="200" bgcolor="buttonface">
<table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage0>
<tr>
<td width="100%">你好,我是Fason</td>
</tr>
</table>
<table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage1 style="display:none">
<tr>
<td width="100%">这个是简单版</td>
</tr>
</table>
<table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage2 style="display:none">
<tr>
<td width="100%">扩展性不是很好</td>
</tr>
</table>
<table border=0 width="100%" height=100% cellspacing="0" cellpadding="0" id=tabpage3 style="display:none">
<tr>
<td width="100%">大家多多改善!</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
也有现成的控件
http://www.csdn.net/Develop/Read_Article.asp?Id=15124