5种风格的 jQuery 分页效果【附代码】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jQuery Pagination - jPaginate</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="jPaginate - jQuery Pagination Plugin" />
<meta name="keywords" content="jquery, plugin, pagination, fancy" />
<link rel="stylesheet" type="text/css" href="http://1112.qkxue.net/css/style.css" media="screen"/>
<link rel="stylesheet" href="http://1112.www.qixoo.qixoo.com/demo/common/init.css">
<style>
body{
background: #a7c7dc repeat-x top left;
font-family: verdana;
padding:0px;
margin:0px;
letter-spacing:2px;
}
.top-banner {
background-color: rgba(0,0,0,0.5);
}
.header{
position:absolute;
top:0px;
left:0px;
width:100%;
height:80px;
}
.header h1{
color:#fff;
font-size: 38px;
margin:0px 0px 0px 30px;
font-weight:100;
line-height:80px;
padding:0px;
}
.footer{
width:100%;
margin:10px 0px 5px 0px;
}
a img{
border:none;
outline:none;
}
.content{
margin-top:100px;
padding:0px;
bottom:0px;
}
.about{
width:100%;
height:400px;
background:transparent url(about.png) repeat-x top left;
border-top:2px solid #ccc;
border-bottom:2px solid #000;
}
.about .text{
width:16%;
margin:5px 2% 10px 2%;
height:380px;
float:left;
color:#FCFEF3;
font-size: 16px;
text-align:justify;
letter-spacing:0px;
}
.about .text h1{
border-bottom: 1px dashed #ccc;
color:#fff;
}
.demo{
width:580px;
padding:10px;
margin:10px auto;
border: 1px solid #fff;
background-color:#f7f7f7;
}
h1{
color:#404347;
margin:5px 30px 20px 0px;
font-weight:100;
}
.pagedemo{
border: 1px solid #CCC;
width:310px;
margin:2px;
padding:50px 10px;
text-align:center;
background-color:white;
}
</style>
</head>
<body>
<!-- <div class="header">
<h1>jPaginate</h1>
</div> -->
<div class="content" style="margin-bottom:100px">
<div class="demo">
<h1>分页效果 1</h1>
<div id="demo1">
</div>
</div>
<div class="demo">
<h1>分页效果 2</h1>
<div id="demo2">
</div>
</div>
<div class="demo">
<h1>分页效果 3</h1>
<div id="demo3">
</div>
</div>
<div class="demo">
<h1>分页效果 4</h1>
<div id="demo4">
</div>
</div>
<div id="paginationdemo" class="demo">
<h1>分页效果 5</h1>
<div id="p1" class="pagedemo _current" style="">Page 1</div>
<div id="p2" class="pagedemo" style="display:none;">Page 2</div>
<div id="p3" class="pagedemo" style="display:none;">Page 3</div>
<div id="p4" class="pagedemo" style="display:none;">Page 4</div>
<div id="p5" class="pagedemo" style="display:none;">Page 5</div>
<div id="p6" class="pagedemo" style="display:none;">Page 6</div>
<div id="p7" class="pagedemo" style="display:none;">Page 7</div>
<div id="p8" class="pagedemo" style="display:none;">Page 8</div>
<div id="p9" class="pagedemo" style="display:none;">Page 9</div>
<div id="p10" class="pagedemo" style="display:none;">Page 10</div>
<div id="demo5">
</div>
</div>
</div>
<!-- <div class="about">
<div class="text">
<h1>Demo 1</h1>
<p>Hover over the arrows to make the pages move or keep the mouse button down in order to move a whole set.</p>
<p>Clicking a page number will make it move to the center</p>
</div>
<div class="text">
<h1>Demo 2</h1>
<p>Demo 2 shows how the plugin can be used with arrow images.</p>
</div>
<div class="text">
<h1>Demo 3</h1>
<p>This is an example without any arrows. The user just sees the current page and the surrounding pages.</p>
</div>
<div class="text">
<h1>Demo 4</h1>
<p>Demo 4 shows how the plugin can be configured in style (no borders for the page numbers).</p>
</div>
<div class="text">
<h1>Demo 5</h1>
<p>This one shows how to integrate the plugin with an onChange event.</p>
</div>
</div> -->
</div>
<!-- <div class="footer"><a href="http://www.tympanus.net/codrops/"><img src="codrops_back.png" alt="Back to Codrops"/></a></div> -->
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script src="jquery.paginate.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#demo1").paginate({
count : 100,
start : 1,
display : 8,
border : true,
border_color : ‘#fff‘,
text_color : ‘#fff‘,
background_color : ‘black‘,
border_hover_color : ‘#ccc‘,
text_hover_color : ‘#000‘,
background_hover_color : ‘#fff‘,
images : false,
mouse : ‘press‘
});
$("#demo2").paginate({
count : 50,
start : 5,
display : 10,
border : false,
text_color : ‘#888‘,
background_color : ‘#EEE‘,
text_hover_color : ‘black‘,
background_hover_color : ‘#CFCFCF‘
});
$("#demo3").paginate({
count : 50,
start : 20,
display : 12,
border : true,
border_color : ‘#BEF8B8‘,
text_color : ‘#68BA64‘,
background_color : ‘#E3F2E1‘,
border_hover_color : ‘#68BA64‘,
text_hover_color : ‘black‘,
background_hover_color : ‘#CAE6C6‘,
rotate : false,
images : false,
mouse : ‘press‘
});
$("#demo4").paginate({
count : 50,
start : 20,
display : 12,
border : false,
text_color : ‘#79B5E3‘,
background_color : ‘none‘,
text_hover_color : ‘#2573AF‘,
background_hover_color : ‘none‘,
images : false,
mouse : ‘press‘
});
$("#demo5").paginate({
count : 10,
start : 1,
display : 7,
border : true,
border_color : ‘#fff‘,
text_color : ‘#fff‘,
background_color : ‘black‘,
border_hover_color : ‘#ccc‘,
text_hover_color : ‘#000‘,
background_hover_color : ‘#fff‘,
images : false,
mouse : ‘press‘,
onChange : function(page){
$(‘._current‘,‘#paginationdemo‘).removeClass(‘_current‘).hide();
$(‘#p‘+page).addClass(‘_current‘).show();
}
});
});
</script>
<div style="position:fixed;height:90px;width:100%;left:0;bottom:0"><div class="footer-banner" style="width:728px; margin:0px auto"></div></div>
<script src="http://www.yyyweb.com/demo/common/init.js"></script>
</body>
</html>
5种风格的 jQuery 分页效果【附代码】的更多相关文章
- 分享5种风格的 jQuery 分页效果【附代码】
jPaginate 是一款非常精致的分页插件,提供了五种不同风格的分页效果,支持鼠标悬停翻页,快速分页功能.这款插件还提供了丰富的配置选项,你可以根据需要进行设置. 效果演示 源码下载 各个 ...
- 三种比较好玩的黑客效果JS代码(摘取)
<html> <head> <title>The Matrix</title> <script src="http://ajax.goo ...
- php分页实例附代码
一个典型的PHP分页实例代码分享,学习php的朋友肯定用得到,主要是了解思路: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ...
- Winform中实现自定义屏保效果(附代码下载)
场景 效果 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 新建form ...
- Winform中使用Timer实现滚动字幕效果(附代码下载)
场景 效果 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 新建一个Fo ...
- 一段freemarker高级分页效果的代码
<a onclick="page(1)">首页</a> [#if currpage != 1] [#assign last=currpage - 1] &l ...
- 新鲜出炉的30个精美的 jQuery & CSS3 效果【附演示和教程】
新鲜出炉的30个精美的 jQuery & CSS3 效果[附演示和教程] 作为最流行的 JavaScript 开发框架,jQuery 在现在的 Web 开发项目中扮演着重要角色,它简化了 ...
- jquery自定义插件实现分页效果
这节介绍如何自定义jquery插件,实现分页效果,话不多说,先看看实现的效果: 分页插件 实现的代码如下: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTM ...
- 基于jquery 的分页插件,前端实现假分页效果
上次分享了一款jquery插件,现在依旧分享这个插件,不过上一次分享主要是用于regular框件,且每一页数据都是从后端获取过来的,这一次的分享主要是讲一次性获取完数据 然后手动进行分页.此需求基本上 ...
随机推荐
- C和指针笔记 3.8 static关键字
当用于不同的上下文环境时,static关键字具有不同的意思. 当它用于函数定义时,或用于代码块之外的变量声明时,static关键字用于修改标识符的链接属性,从external改为internal,但标 ...
- Ubuntu 下安装 apt-get install npm 失败的解决方案
Ubuntu 下安装 apt-get install npm 失败的解决方案: sudo apt-get remove nodejs npm ## remove existing nodejs an ...
- Spring小练习之宝宝淘项目
数据库准备 # 表结构 CREATE TABLE `t01_user` ( `) NOT NULL AUTO_INCREMENT COMMENT '自增主键', `) DEFAULT NULL COM ...
- py变量
1, python以数据为主 x=2,是给数据2开辟了个空间, X指向了2 y=x ,即y指向了2 x=5 ,x重新赋值 但是y依旧是原来的
- win PPTP场景与搭建
远程访问方案: 1,端口映射 2,vpn 实现这种远程访问的协议:pptp 等. 场景: 要从考试服务器[电信]下载题目. 单位有两个办事处,A双出口,B单网通出口. B要下载题,很慢. ...
- WorldWind源码剖析系列:WorldWind实时确定、更新、初始化和渲染地形和纹理数据
WorldWind实时确定.更新.初始化和渲染地形和纹理数据 当用户点击WorldWind中的地球时,首先响应的是WorldWindow.OnPaint()函数,后续程序的调用流程如下图所示. 零散知 ...
- Android Fragment 完全解析
参考文章:http://blog.csdn.net/guolin_blog/article/details/8881711 http://blog.csdn.net/guolin_blog/artic ...
- 收集的User-Agent
headers = [ {"User-Agent": "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; A ...
- [CareerCup] 12.2 Find the Reason of Crash 找到程序崩溃的原因
12.2 You are given the source to an application which crashes when it is run. After running it ten t ...
- IOS开发之—— 客服QQ(调用qq网页聊天),客服热线(拨打电话)
@property (nonatomic,strong) UIButton *but;@property (nonatomic,strong) UIButton *but1;@property (st ...