• 文字广告位
  • 文字广告位
  • 文字广告位
您现在的位置: 站长手册 >> 特效代码 >> 导航类 >> 正文
站内搜索
Google
[图文]simple_accordions TAB标签导航效果[一]
      ★★★★   

simple_accordions TAB标签导航效果[一]

雅虎收藏夹 百度收藏 Google书签 Yahoo书签 新浪ViVi 搜狐网摘 365Key网摘 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 Del.icio.us digg reddit spurl BlinkList blogmarks
人气: 来源:dezinerfolio 作者:佚名 所属栏目:导航类 [切换到繁體中文]
介绍:美观的TAB标签特效,共有五种标签效果供选择,此为第一种效果。

演示:

[Ctrl+A全选 提示:你可先修改部分代码,再按运行]

下面教你如何应用此特效: JS文件下载  accordian.pack.js  accordian-src.js
 --------------------------------------------------------------------------------------
  需要在<body 这里>加入的代码:onload="new Accordian('basic-accordian',5,'header_highlight');"
 --------------------------------------------------------------------------------------
以下代码加到<head>…</head>中
以下代码加到<body>…</body>中
<style type="text/css">
* {
 margin:0;
 padding:0;
 list-style:none;
}
body {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 11px;
 margin:10px;
}

#basic-accordian{
 border:5px solid #EEE;
 padding:5px;
 width:350px;
 position:absolute;
 left:50%;
 top:50%;
 margin-left:-175px;
 z-index:2;
 margin-top:-100px;
}

.accordion_headings{
 padding:5px;
 background:#99CC00;
 color:#FFFFFF;
 border:1px solid #FFF;
 cursor:pointer;
 font-weight:bold;
}

.accordion_headings:hover{
 background:#00CCFF;
}

.accordion_child{
 padding:15px;
 background:#EEE;
}

.header_highlight{
 background:#00CCFF;
}

</style>
<script type="text/javascript" src="http://www.zzsc.org/texiao/zzsc_demo/simple_accordions_with_src/accordian.pack.js"></script>

<div id="basic-accordian" ><!--Parent of the Accordion-->


<!--Start of each accordion item-->
  <div id="test-header" class="accordion_headings header_highlight" >Home</div><!--Heading of the accordion ( clicked to show n hide ) -->
  
  <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
  
  <div id="test-content"><!--DIV which show/hide on click of header-->
  
   <!--This DIV is for inline styling like padding...-->
    <div class="accordion_child">
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ligula nisl, egestas non, pharetra vel, scelerisque accumsan, lacus. Proin nibh. Aenean dapibus. Quisque facilisis, ligula ut blandit hendrerit, purus neque rhoncus ipsum, sit amet ultrices mauris augue non arcu. Donec et sem nec libero viverra accumsan.<br /><br /> Quisque facilisis, ligula ut blandit hendrerit, purus neque rhoncus ipsum, sit amet ultrices mauris augue non arcu. Donec et sem nec libero viverra accumsan.
    </div>
    
  </div>
<!--End of each accordion item--> 


<!--Start of each accordion item-->
  <div id="test1-header" class="accordion_headings" >About Us</div><!--Heading of the accordion ( clicked to show n hide ) -->
  
  <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
  
  <div id="test1-content"><!--DIV which show/hide on click of header-->
  
   <!--This DIV is for inline styling like padding...-->
    <div class="accordion_child">
     Quisque facilisis, ligula ut blandit hendrerit, purus neque rhoncus ipsum, sit amet ultrices mauris augue non arcu. Donec et sem nec libero viverra accumsan.
    </div>
    
  </div>
<!--End of each accordion item--> 

<!--Start of each accordion item-->
  <div id="test2-header" class="accordion_headings" >Downloads</div><!--Heading of the accordion ( clicked to show n hide ) -->
  
  <!--Prefix of heading (the DIV above this) and content (the DIV below this) to be same... eg. foo-header & foo-content-->
  
  <div id="test2-content"><!--DIV which show/hide on click of header-->
  
   <!--This DIV is for inline styling like padding...-->
    <div class="accordion_child">
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ligula nisl, egestas non, pharetra vel, scelerisque accumsan, lacus. Proin nibh. Aenean dapibus. Quisque facilisis, ligula ut blandit hendrerit, purus neque rhoncus ipsum, sit amet ultrices mauris augue non arcu. Donec et sem nec libero viverra accumsan.<br />
    </div>
    
  </div>
<!--End of each accordion item--> 


</div><!--End of accordion parent-->

网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
姓 名: *(必填项) ·注册用户·
Email: QQ号:
评 分: 1分 2分 3分 4分 5分
  • 您可以发表评论支持你喜欢的文章。
  • 请遵守《互联网电子公告服务管理规定》
  • 请遵守中华人民共和国各项有关法律法规。
  • 严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
  • 评论人需对自己在使用评论过程中的行为承担法律责任。
  • 本站管理员有权保留或删除评论内容。
  • 评论内容只代表个人观点,与本网站立场无关。
站内特效搜索
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | | 京ICP备 05004866号 |
版权所有 2007-2008 站长手册 WWW.ZZSC.ORG 业务联系 zzsc.org#gmail.com