利用js实现下拉式tab标签导航切换



69 273 92



特效描述:利用js实现 下拉式 tab标签 导航切换,利用js实现下拉式tab标签导航切换

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/zzsc.css" type="text/css" media="screen" />

2. 引入JS

<script type='text/javascript' src='js/prototype.js'></script>
<script type='text/javascript' src='js/scriptaculous.js?load=effects'></script>
<script type='text/javascript' src='js/e24tabmenu.js'></script>

3. HTML代码

<div id="page">
  <div id="menu" >
    <!---menu  container-->
    <div id="item_3d" class="menutarget">
      <div class="gallery" > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </div>
    </div>
    <div id="item_gall" class="menutarget">
      <div class="gallery"> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. </div>
    </div>
    <div id="item_menu" class="menutarget">
      <div class="gallery"> Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? </div>
    </div>
    <div id="item_efec" class="menutarget">
      <div class="gallery"> Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? </div>
    </div>
    <a id="3d" href="#3d" rel="e24menuitem[item_3d]"><img src="images/3d.gif" alt="Efectos 3D" /></a> <a id="gall" href="#galerias" rel="e24menuitem[item_gall]"><img src="images/galerias.gif" alt="Galería de fotos AJAX" /></a> <a id="menus" href="#menus" rel="e24menuitem[item_menu]" ><img src="images/menus.gif" alt="Efectos de Menús" /></a> <a id="efec" href="#efectos" rel="e24menuitem[item_efec]"><img src="images/efectos.gif" alt="Otros efectos ajax" /></a>
    <!--texto-->
  </div>
  <!--menu container-->
  <!--End of Menu -->
</div>
<div style="text-align:center;clear:both">
</div>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滑动导航菜单 导航切换 二级导航菜单 滑动选项卡切换 下拉导航菜单 图片滑动 图片切换 竖直导航菜单 文字滑动 文字切换 图标导航菜单 滑动手风琴 背景切换 固定导航菜单 滑动星星打分 手风琴 侧边导航菜单 选项卡自动切换 树形导航菜单 视频切换 网址导航菜单 列表切换 导航菜单插件 渐隐切换 文字导航菜单 全屏切换 切换按钮 缩放切换 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滑动滑过 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到