js+css页签

<html> <head>  <title>tag</title>  <script type='text/javascript'>   //结果集页签切换方法   function selectchjgTag(showContent,selfObj){     // 操作标签     var tag = document.getElementById("tags").getElementsByTagName("li");     var taglength = tag.length;     for(i=0; i<taglength; i++){      tag[i].className = "";     }     selfObj.parentNode.className = "selectTag";     // 操作内容     for(i=0; j=document.getElementById("chjgxx"+i); i++){      j.style.display = "none";     }     document.getElementById(showContent).style.display = "block";   }   </script> </head> <body>   <table style='bottom:0;border-collapse:collapse;font-size:12px' >     <div id='con' style='height:30% ;position:relative;font-size:12px; width:800px; margin:0 auto' class='dragAble'>    <ul id='tags' style='height:23px; width:800px; margin:0; padding:0; margin-left:10px'>      <li class='selectTag' style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx0' οnclick='selectchjgTag('chjgxx0',this)' style='text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>同户人员</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx1' οnclick='selectchjgTag('chjgxx1',this)' style='display:block;text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>联系方式</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx2' οnclick='selectchjgTag('chjgxx2',this)' style='text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>居住历史记录</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx3' οnclick='selectchjgTag('chjgxx3',this)' style='text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>关系人</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx4' οnclick='selectchjgTag('chjgxx4',this)' style='display:block;text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>体貌特征</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx5' οnclick='selectchjgTag('chjgxx5',this)' style='display:block;text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>特殊特征</a></li>      <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx6' οnclick='selectchjgTag('chjgxx6',this)' style='display:block;text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>涉警记录</a></li>     <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx7' οnclick='selectchjgTag('chjgxx7',this)' style='display:block;text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>涉案记录</a></li>     <li style='float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none'><a href='javascript:void(0)' id='chxxxx8' οnclick='selectchjgTag('chjgxx8',this)' style='text-decoration:none; float:left; background:url(images/tabright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999'>从业记录</a></li>    </ul>   <div id='tagContent' style='padding:1px; background-color:#fff; border-top:2px solid #4a98af;'>    <div id='chjgxx0' class='tagContent selectTag' style='display:block;background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'></div>    <div id='chjgxx1' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>2</div>    <div id='chjgxx2' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>3</div>    <div id='chjgxx3' style='OVERFLOW-Y: scroll;' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>点击具体房间号查看人员情况</div>    <div id='chjgxx4' style='OVERFLOW-Y: scroll;' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'></div>    <div id='chjgxx5' style='OVERFLOW-Y: scroll;' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'></div>    <div id='chjgxx6' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>7</div>   <div id='chjgxx7' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>8</div>   <div id='chjgxx8' style='OVERFLOW-Y: scroll;' class='tagContent' style='background:url(images/bg.gif) repeat-x; height:180px; padding:10px; color:#474747; width:800px; display:none'>8</div>  </div> </div> </table>  <body></html>


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值