基于jquery实现自动滚动叠加切换特效



92 365 122



特效描述:基于jquery实现 自动滚动 叠加切换特效,基于jquery实现自动滚动叠加切换特效

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/funnyNewsTicker.css">
<link href='http://fonts.useso.com/css?family=Open+Sans:400,600,300&subset=latin-ext' rel='stylesheet' type='text/css'>

2. 引入JS

<script src="js/jQuery.js"></script>

3. HTML代码

	<div class="container">
        <div style="width:50%; margin:0 auto; box-sizing:border-box;">
            <div class="funnyNewsTicker fnt-radius fnt-shadow fnt-easing" id="funnyNewsTicker2">
                <ul>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">1. Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">2. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">3. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">4. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">5. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">6. Lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">7. Variations of passages of Lorem Ipsum available, but the majority have suffered</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">8. Test content lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">9. Lorem Ipsum is that it has a more-or-less normal distribution example content </div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">10. Lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                </ul>
            </div>
        </div>
        <br><br>
        <div style="width:50%; margin:0 auto; box-sizing:border-box;">
            <div class="funnyNewsTicker fnt-radius fnt-shadow fnt-easing" id="funnyNewsTicker3">
                <ul>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">1. Lorem Ipsum is simply dummy text of the printing and typesetting industry.</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">2. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">3. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration <a href="#">http://envato.com</a></div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">4. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">5. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">6. Lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">7. Variations of passages of Lorem Ipsum available, but the majority have suffered</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">8. Test content lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">9. Lorem Ipsum is that it has a more-or-less normal distribution example content </div>
                    </li>
                    <li>
                        <div class="fnt-content" data-link="http://www.51qianduan.com">10. Lorem Ipsum is that it has a more-or-less normal distribution</div>
                    </li>
                </ul>
            </div>
        </div>
    </div> 
<script>
	$(document).ready(function(){
		$("#funnyNewsTicker1").funnyNewsTicker({feed:"http://www.51qianduan.com/",width:"70%"});	
		$("#funnyNewsTicker2").funnyNewsTicker({width:"80%",timer:1000,titlecolor:"#FFF",itembgcolor:"#1faf6d",infobgcolor:"#1a935c",buttonstyle:"white",bordercolor:"#1a935c"});	
		$("#funnyNewsTicker3").funnyNewsTicker({width:"40%",itemheight:250,infobarvisible:false,pagenavi:false,timer:500,itembgcolor:"#af1f63",bordercolor:"#af1f63",titlecolor:"#FFF"});	
	});	
</script>



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


热门标签: 文字叠加 滚动导航菜单 导航切换 图片叠加 图片头像上传 滚动切换 文件上传 图片滚动 图片切换 文本框 文字滚动 文字切换 下拉框 背景切换 复选 图片文字滚动 手风琴 单选 全屏滚动 选项卡自动切换 登录框 页面滚动 视频切换 注册框 列表切换 搜索框 验证码 渐隐切换 二级联动 全屏切换 三级联动 切换按钮 城市选择 缩放切换 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 滚动流动 滚动切换 滑动选项卡切换 自动滚动图片轮播 叠加浮动层 选项卡切换 滑动手风琴 重叠层叠叠加 切换按钮 form表单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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