基于jquery的滚动新闻列表
来源:互联网 发布:大数据的优点和缺点 编辑:程序博客网 时间:2024/06/04 18:47
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>vTicker</title>
<style type="text/css" media="all">
body,html {
padding: 0;
margin: 0;
}
body {
background: #cccccc;
}
#news - container {
width: 400px;
margin: auto; margin - top : 10px;
border: 5px solid #333333;
}
#news - container ul li div {
border: 1px solid #aaaaaa;
background: #ffffff;
}
</style>
<script type="text/javascript" src="demo_files/jquery.js">
</script>
<script type="text/javascript" src="demo_files/jquery.vticker-min.js">
</script>
<script type="text/javascript">
$(function() {
$('#news-container').vTicker({
speed: 500,
pause: 3000,
animation: 'fade',
mousePause: false,
showItems: 3
});
$('#news-container1').vTicker({
speed: 700,
pause: 4000,
animation: 'fade',
mousePause: false,
showItems: 1
});
});
</script>
</head>
<body>
<div id="news-container1">
<ul>
<li>
新闻标题1
</li>
<li>
新闻标题2
</li>
<li>
新闻标题3
</li>
<li>
新闻标题4
</li>
<li>
新闻标题5
</li>
</ul>
</div>
<div style="overflow: hidden; position: relative; height: 24px;"
id="news-container">
<ul style="position: absolute; margin: 0pt; padding: 0pt; top: 0px;">
<li
style="margin: 0pt; padding: 0pt; height: 18px; display: list-item;">
<div>
4) 摩洛哥塞拉,艺术家在一场为流浪儿童募捐的马戏节目中表演
</div>
</li>
<li
style="margin: 0pt; padding: 0pt; height: 18px; display: list-item;">
<div>
1) 印度克什知自己的孩子在骚乱中丧生时痛不欲生
</div>
</li>
<li
style="margin: 0pt; padding: 0pt; height: 18px display: list-item;">
<div>
2) 昆明警方近日捣毁了寻甸县的“洪兴帮”黑恶势力团伙
</div>
</li>
<li style="margin: 0pt; padding: 0pt; height: 18px">
<div>
3) 湖北武汉汉口龙王庙景区观景平台上,市民聚集在江边观看两江洪峰过汉
</div>
</li>
</ul>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>vTicker</title>
<style type="text/css" media="all">
body,html {
padding: 0;
margin: 0;
}
body {
background: #cccccc;
}
#news - container {
width: 400px;
margin: auto; margin - top : 10px;
border: 5px solid #333333;
}
#news - container ul li div {
border: 1px solid #aaaaaa;
background: #ffffff;
}
</style>
<script type="text/javascript" src="demo_files/jquery.js">
</script>
<script type="text/javascript" src="demo_files/jquery.vticker-min.js">
</script>
<script type="text/javascript">
$(function() {
$('#news-container').vTicker({
speed: 500,
pause: 3000,
animation: 'fade',
mousePause: false,
showItems: 3
});
$('#news-container1').vTicker({
speed: 700,
pause: 4000,
animation: 'fade',
mousePause: false,
showItems: 1
});
});
</script>
</head>
<body>
<div id="news-container1">
<ul>
<li>
新闻标题1
</li>
<li>
新闻标题2
</li>
<li>
新闻标题3
</li>
<li>
新闻标题4
</li>
<li>
新闻标题5
</li>
</ul>
</div>
<div style="overflow: hidden; position: relative; height: 24px;"
id="news-container">
<ul style="position: absolute; margin: 0pt; padding: 0pt; top: 0px;">
<li
style="margin: 0pt; padding: 0pt; height: 18px; display: list-item;">
<div>
4) 摩洛哥塞拉,艺术家在一场为流浪儿童募捐的马戏节目中表演
</div>
</li>
<li
style="margin: 0pt; padding: 0pt; height: 18px; display: list-item;">
<div>
1) 印度克什知自己的孩子在骚乱中丧生时痛不欲生
</div>
</li>
<li
style="margin: 0pt; padding: 0pt; height: 18px display: list-item;">
<div>
2) 昆明警方近日捣毁了寻甸县的“洪兴帮”黑恶势力团伙
</div>
</li>
<li style="margin: 0pt; padding: 0pt; height: 18px">
<div>
3) 湖北武汉汉口龙王庙景区观景平台上,市民聚集在江边观看两江洪峰过汉
</div>
</li>
</ul>
</div>
</body>
</html>
- 基于jquery的滚动新闻列表
- 基于jquery的无缝循环新闻列表
- jquery的新闻滚动
- 基于bootstrap的响应式jQuery滚动新闻插件 _bootstrapNew
- jquery新闻的动态滚动
- JQuery页面图片切换和新闻列表滚动效果的具体实现
- 新闻列表 滚动特效
- 多行滚动jQuery循环新闻列表代码
- 基于bootsrap的一个新闻滚动插件
- Jquery滚动新闻
- jquery实现新闻滚动
- Jquery 滚动新闻
- 新闻列表无间断滚动
- 新闻播报类的插件,可以无限的滚动列表
- 无间断的滚动新闻列表特效 兼容Firefox浏览器
- 点击可上下左右滚动的新闻图片列表
- Jquery应用案例之单条新闻的滚动效果(仿雅虎首页新闻滚动)
- 新闻滚动栏效果--JQuery
- 计算广告学习笔记3.1 受众定向-受众定向概念
- 每秒100帧的行人检测方法 .
- namespace及use的用法
- iphone开发 Tab Bar应用程序中添加NavigationController
- 网卡驱动学习之netlink
- 基于jquery的滚动新闻列表
- c++ map
- setTimeout与setInterval区别
- 常用web.config公共配置
- JQuery中对option的添加、删除、取值
- mysql创建帐号
- Top 100 Software Testing Interview Questions
- linux下svn命令
- 前100个软件测试面试问题集锦(连载)