jQuery Bootstrap响应式新闻列表文字上下滚动特效



如需定制开发(网站开发、二次开发)在线咨询,请点击>> QQ:753511799

330 1316 439



特效描述:jQuery Bootstrap 响应式新闻列表 文字上下滚动特效。jQuery Bootstrap列表文字上下滚动

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.bootstrap.newsbox.min.js" type="text/javascript"></script>

3. HTML代码

<div class="container mp30">
	<div class="row">
		<div class="col-md-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-list-alt"></span><b>News</b></div>
				<div class="panel-body">
					<div class="row">
						<div class="col-xs-12">
							<ul class="demo1">
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/1.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/2.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/3.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/4.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/5.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/6.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
								<li class="news-item">
									<table cellpadding="4">
										<tr>
											<td><img src="images/7.png" width="60" class="img-circle" /></td>
											<td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></td>
										</tr>
									</table>
								</li>
							</ul>
						</div>
					</div>
				</div>
				<div class="panel-footer">
				</div>
			</div>
		</div>
		<div class="col-md-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-list-alt"></span><b>News</b></div>
				<div class="panel-body">
					<div class="row">
						<div class="col-xs-12">
							<ul class="demo2">
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
								<li class="news-item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in venenatis enim... <a href="#">Read more...</a></li>
							</ul>
						</div>
					</div>
				</div>
				<div class="panel-footer">
				</div>
			</div>
		</div>
		<div class="col-md-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-list-alt"></span><b>News</b></div>
				<div class="panel-body">
					<div class="row">
						<div class="col-xs-12">
							<ul id="demo3">
								<li class="news-item">Curabitur porttitor ante eget hendrerit adipiscing. Maecenas at magna accumsan,
									rhoncus neque id, fringilla dolor. <a href="#">Read more...</a></li>
								<li class="news-item">Curabitur porttitor ante eget hendrerit adipiscing. Maecenas at magna accumsan,
									rhoncus neque id, fringilla dolor. <a href="#">Read more...</a></li>
								<li class="news-item">Praesent ornare nisl lorem, ut condimentum lectus gravida ut. Ut velit nunc, vehicula
									volutpat laoreet vel, consequat eu mauris. <a href="#">Read more...</a></li>
								<li class="news-item">Nunc ultrices tortor eu massa placerat posuere. Vivamus viverra sagittis nunc. Nunc
									et imperdiet magna. Mauris sed eros nulla. <a href="#">Read more...</a></li>
								<li class="news-item">Morbi sodales tellus sit amet leo congue bibendum. Ut non mauris eu neque fermentum
									pharetra. <a href="#">Read more...</a></li>
								<li class="news-item">In pharetra suscipit orci sed viverra. Praesent at sollicitudin tortor, id sagittis
									magna. Fusce massa sem, bibendum id. <a href="#">Read more...</a> </li>
								<li class="news-item">Maecenas nec ligula sed est suscipit aliquet sed eget ipsum. Suspendisse id auctor
									nibh. Ut porttitor volutpat augue, non sodales odio dignissi id. <a href="#">Read more...</a></li>
								<li class="news-item">Onec bibendum consectetur diam, nec euismod urna venenatis eget. Cras consequat
									convallis leo. <a href="#">Read more...</a> </li>
							</ul>
						</div>
					</div>
				</div>
				<div class="panel-footer">
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$(".demo1").bootstrapNews({
		newsPerPage: 5,
		autoplay: true,
		pauseOnHover:true,
		direction: 'up',
		newsTickerInterval: 4000,
		onToDo: function () {
			//console.log(this);
		}
	});
	$(".demo2").bootstrapNews({
		newsPerPage: 4,
		autoplay: true,
		pauseOnHover: true,
		navigation: false,
		direction: 'down',
		newsTickerInterval: 2500,
		onToDo: function () {
			//console.log(this);
		}
	});
	$("#demo3").bootstrapNews({
		newsPerPage: 3,
		autoplay: false,
		onToDo: function () {
			//console.log(this);
		}
	});
});
</script>



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


热门标签: 滚动导航菜单 图片头像上传 文字标签 滚动切换 文件上传 彩色文字 图片滚动 文本框 文字闪烁 文字滚动 下拉框 打字机 复选 文字列表 图片文字滚动 单选 全屏滚动 文字弹幕 登录框 页面滚动 文字高亮 注册框 搜索框 验证码 二级联动 三级联动 城市选择 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 文字叠加 滚动流动 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 360全景 html5文字动画 文字滚动 文字滑动 文字切换 自动滚动图片轮播 图片文字 文字导航菜单 切换按钮 form表单 文字

×
×
51前端

注册

×
绑定手机

请绑定手机号,在继续操作

×
单次下载支付

应付金额:279

支付完成后,回到下载页面,在进行下载

官方QQ群
意见反馈
qq群

扫描上面二维码加微信群

官方QQ群

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

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