会员登陆
注册帐号
忘记密码
热门源码
|
热门软件
|
高级搜索
|
网站地图
|
RSS订阅
免费收录你的网站,现在加入广捷居!
快速备案:一天备好,一次30,备好付款。
CSS代码在线格式化、美化工具
首页
站长资讯
源码下载
素材图库
脚本特效
电子书籍
专题
开源者社区
智能模糊搜索
资源名称检索
本站推荐
:
2009年度 优秀互联网建站CMS推荐~
200 x 60 广告位待租
灰色风格的漂亮TAB选项卡
脚本类别:
菜单导航
添加时间:
2010-02-08
查看次数:
作者:
脚本代码
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Div + CSS 选项卡</title> <style type="text/css"> .clearfix:after{ content:".";display:block;height:0;clear:both;visibility:hidden; } .clearfix{ display:inline-block; } * html .clearfix,* html{ height:1%; } .clearfix{ display:block; } .clear{ border-top:1px solid transparent!important;border-top:0;clear:both;line-height:0;font-size:0;height:0;height:1%; } .goods-detail-tab{ margin:30px 0 0 0;background:url(/Pri_upfile/jspic/2010/tabsepbg.gif) repeat-x 0 1px;padding-left:5px;overflow:visible; } .goods-detail-tab div{ cursor:pointer;background:url(/Pri_upfile/jspic/2010/tabs_common.gif) no-repeat;color:#666;display:block;float:left;height:17px;padding:4px 2px;text-align:center;width:91px; } .goods-detail-tab .active{ background:url(/Pri_upfile/jspic/2010/tabs_on.gif) no-repeat;color:#000;display:block;font-size:14px;font-weight:bold;height:28px;position:relative;margin-bottom:-4px;margin-top:-8px;padding-top:6px;width:117px; } </style> </head> <body> <div class="goods-detail-tab clearfix" id="tabs"> <div class="goodsDetailTab active" onclick="put_css(1)"> <span>商品详情</span> </div> <div class="goodsDetailTab" onclick="put_css(2)"> <span>购买咨询</span> </div> <div class="goodsDetailTab" onclick="put_css(3)"> <span>商品评论</span> </div> </div> <div class="clear"></div> <div id="ka"> <div style="">asdfsdf</div> <div style="">123213</div> <div style="">VVVV</div> </div> </body> </html> <script type="text/javascript"> var tab = document.getElementById('tabs').getElementsByTagName('div'); var kbs = document.getElementById('ka').getElementsByTagName('div'); function put_css(id){ for(var k=0;k<tab.length;k++){ if(id-1 == k){ tab[k].className = 'goodsDetailTab active'; kbs[k].style.display = 'block'; }else{ tab[k].className = 'goodsDetailTab'; kbs[k].style.display = 'none'; } } } put_css(1); </script>
loading...
当前页面所处路径为
共享世纪
/
脚本特效
/
菜单导航
/ ,本特效的Tag为:
选项卡
tab
共享世纪
灰色风格的漂亮TAB选项卡
相关网页特效脚本 or 资源
橙色风格的DIV+CSS选项卡
仿MSN网站TAB选项卡效果
微软首页下方的一个TAB效果
仅有1KB的TAB特效脚本
圆角背景自适应加选项卡
TabPanel应用基础
选项卡或类似选项卡的切换效果
一个TAB切换和Radio的切换效果
非常大气的表格 table和CSS构建
一个简洁易用的TAB导航菜单
横向和纵向的下拉菜单 Drop Down
CTB(China Text Bulletin) V1.8.0 STABLE正式
评论加载中....
会员登陆
X
用户名
密 码
验证码