jquery实现卷帘门滑动选项卡插件



91 363 122



特效描述:jquery实现 卷帘门 滑动选项卡,jquery实现卷帘门滑动选项卡插件

代码结构

1. 引入CSS

<link href="css/timetabs.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/jquery.timetabs.min.js" type="text/javascript"></script>

3. HTML代码

    <div id="container">
        <div class="itemdiv left">
            <h2>Animation: <span>fade</span></h2>
            <dl class="tabs" id="tabs4">
                <dt>Tab 1</dt>
                <dd><img src="images/content/loewe.jpg" width="450" height="278" alt="Galaxy 01" /></dd>
                <dt>Tab 2</dt>
                <dd><img src="images/content/zebra.jpg" width="450" height="278" alt="Galaxy 02" /></dd>
                <dt>Tab 3</dt>
                <dd><img src="images/content/giraffe.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
                <dt>Tab 4</dt>
                <dd><img src="images/content/elefant.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
            </dl>
            <div class="pre">
$(document).ready(function(){<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('dl').akkordion({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animated: 'fade'<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
});
            </div>
        </div>
        <div class="itemdiv right">
            <h2>Animation: <span>curtain</span></h2>
            <dl class="tabs" id="tabs3">
                <dt>Tab 1</dt>
                <dd><img src="images/content/loewe.jpg" width="450" height="278" alt="Galaxy 01" /></dd>
                <dt>Tab 2</dt>
                <dd><img src="images/content/zebra.jpg" width="450" height="278" alt="Galaxy 02" /></dd>
                <dt>Tab 3</dt>
                <dd><img src="images/content/giraffe.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
                <dt>Tab 4</dt>
                <dd><img src="images/content/elefant.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
            </dl>
            <div class="pre">
$(document).ready(function(){<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('dl').akkordion({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animated: 'curtain'<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
});
            </div>
        </div>
        <div class="itemdiv left">
            <h2>Animation: <span>slide</span></h2>
            <dl class="tabs" id="tabs2">
                <dt>Tab 1</dt>
                <dd><img src="images/content/loewe.jpg" width="450" height="278" alt="Galaxy 01" /></dd>
                <dt>Tab 2</dt>
                <dd><img src="images/content/zebra.jpg" width="450" height="278" alt="Galaxy 02" /></dd>
                <dt>Tab 3</dt>
                <dd><img src="images/content/giraffe.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
                <dt>Tab 4</dt>
                <dd><img src="images/content/elefant.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
            </dl>
            <div class="pre">
$(document).ready(function(){<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('dl').akkordion({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animated: 'slide'<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
});
            </div>
        </div>
        <div class="itemdiv right">
            <h2>Animation: <span>off</span></h2>
            <dl class="tabs" id="tabs1">
                <dt>Tab 1</dt>
                <dd><img src="images/content/loewe.jpg" width="450" height="278" alt="Galaxy 01" /></dd>
                <dt>Tab 2</dt>
                <dd><img src="images/content/zebra.jpg" width="450" height="278" alt="Galaxy 02" /></dd>
                <dt>Tab 3</dt>
                <dd><img src="images/content/giraffe.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
                <dt>Tab 4</dt>
                <dd><img src="images/content/elefant.jpg" width="450" height="278" alt="Galaxy 03" /></dd>
            </dl>
            <div class="pre">
$(document).ready(function(){<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('dl').akkordion({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animated: false<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
});
            </div>
        </div>
	</div>
<div style="text-align:center;clear:both">
</div>



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


热门标签: 文字叠加 滑动导航菜单 导航切换 图片叠加 图片淡出淡进 滑动选项卡切换 文字淡出淡进 图片滑动 图片切换 文字滑动 文字切换 滑动手风琴 背景切换 滑动星星打分 手风琴 选项卡自动切换 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 滑动滑过 滚动切换 滑动选项卡切换 叠加浮动层 选项卡切换 滑动手风琴 重叠层叠叠加 渐隐切换 淡出淡入淡进

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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