jQuery Bootstrap響應式新聞列表文字上下滾動特效



112 447 150



特效描述: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>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 滾動 滾動條 頁面滾動 滾動插件 滾動條插件 滾動條美化 文字拖動 文字拖拽 文字提示框 提示文字 文字收縮展開 文字收縮 文字展開 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 文字翻轉 文字旋轉 文字淡出淡進 文字淡出 文字淡進 文字全屏 文字延遲加載 文字延遲 文字加載 360全景 360度全景 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 文字滾動 文字無縫滾動 文字間歇滾動 文字滑動 文字滑塊 文字切換 文字選項卡 自動滾動圖片輪播 圖片文字 文字導航菜單 文字導航 文字菜單 切換按鈕 表單 表單美化 表單插件 表單美化插件 文字 文字插件 文字滾動 文字無縫滾動 文字間歇滾動 文字列表 按鈕控制
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

湖北30选5开奖结果走势图表