改造jdon的分页显示

闲来没事,把jdon的分页标签捣鼓了下,用CSS控制


手工输入跳转到某页




很不错啊,如果能够共享,我会加到下载包中。

改动部分是后台的标签类,去出了<b>, ,将当前页的css类定义为current,前台的分页显示风格完全由CSS控制,如下:


DIV.pagination {
padding:3px;
margin:3px;
font-size: 10px;
font-weight: bold;
font-family: Arial, Times;
}

DIV.pagination a {
padding: 2px 5px 2px 5px;
margin-right: 2px;
border: 1px solid #9aafe5;
text-decoration: none;
color: #2e6ab1;
}
DIV.pagination a:hover, .pagination a:active {
border: 1px solid dd6900;
color: #000;
background-color: lightyellow;
text-decoration: none;
}
DIV.pagination .current {
padding: 2px 5px 2px 5px;
margin-right: 2px;
border: 1px solid navy;
font-weight: bold;
background-color: #2e6ab1;
color: FFF;
}
DIV.pagination .disabled {
padding: 2px 5px 2px 5px;
margin-right: 2px;
border: 1px solid #929292;
color: #929292;
}

附件:包含修改后的tag.jar分页标签库和来自互联网的24种分页效果style.css

testWeb.rar


[该贴被oojdon于2008-05-11 15:08修改过]
attachment:


testWeb.rar

太好了,我代表大家感谢你

太感谢了...

其实不尽完美,大家可以改一下,比如手工输入数字超过分页数量也是可以跳转的!

thank you very much!