3、nonCheckPage(){varbeginPage=parseInt(document.beginPagefrm.beginPage.value);varnumshow=$('.pageinfostrong').eq(0).text()if(isNaN(beginPage)){alert("请输入数字!");returnfalse;}if(beginPage>numshow){alert("超出页码范围!");returnfalse;}if(beginPage<=0){beginPage=1;}if(beginPage>100){beginPage=100;}if(beg
4、inPage>1){document.beginPagefrm.action="list_{dede:fieldname='typeid'/}_"+beginPage+".html";}else{document.beginPagefrm.action="{dede:typetypeid=’0′row=1}[field:typelink/]{/dede:type}";}returntrue;};$(function(){varnumshow=$('.paginationformli').index()if(numshow<2){$('#pageinfo').hide();}}
5、);Css部分:/*pages*/.pagination-wrapper{margin:20px0;}.pagination{height:34px;text-align:center;}.paginationlispan{color:#a91b20}.paginationli{display:inline-block;height:23px;margin-right:5px;}.paginationlia{float:left;display:block;height:32px;line-height:32px;padding:012px;font-siz
6、e:16px;border:1pxsolid#a91b20;color:#a91b20;text-decoration:none;}.paginationlia:hover{background:#a91b20;color:#fff;}.paginationli.thisclass{background:#a91b20;color:#fff;height:34px;width:35px;line-height:35px;}.paginationli.thisclassa,.paginationli.thisclassa:hover{background:transparent
7、;border-color:#09f;color:#fff;cursor:default;}.input_page{height:33px;width:33px;border:1pxsolid#a91b20;padding-left:2px;margin-top:-3px;color:#a91b20;margin-left:5px;}.sure_page{height:33px;width:65px;border:1pxsolid#a91b20;padding-left:2px;margin-top:-
此文档下载收益归作者所有