20元求助javascript采分页的办法 ************长标题才能有点击
我是新手 问题太菜 呵呵 像下面这种分页能采到吗,免费版本的分页区
<center>
<a href='javascript:dfirstPlay();' class='c1'>首页</a>
<a href='javascript:dPlayPre();' class='c1'>上一张</a>
<a href='javascript:dPlayNext();' class='c1'>下一张</a>
<a href='javascript:dweiPlay();' class='c1'>尾页</a>
<a href='javascript:dPlayBig();' class='c1'>原始图片</a>
</center>
javascript
//下一张
function dPlayNext()
{
if(npage==totalpage) { alert("没有了哦"); }
else
{
if(displaytype=='st' && namehand!='') location.href = namehand+"_"+(npage+1)+shortname;
else location.href = "view.php?aid=1316&pageno="+(npage+1);
}
}
window.onload=function (){
maxwidth=980;
imgid = document.getElementById("bigimg");
imgid.width = (imgid.width>maxwidth ? maxwidth : imgid.width);
}
function ToPage(event){
event = event ? event : (window.event ? window.event : null);
if (event.keyCode==37) location=namehand+"_"+(npage-1)+shortname;
if (event.keyCode==39) location=namehand+"_"+(npage+1)+shortname;
}
总页数totalpage 和当前页数npage 在页面上能找到
var npage = 4;
var totalpage = 8;
高手帮帮我啊 网址!!!》?????? 类似这样的站 http://www.52574.cn/a/wangyouzipai/20090916/65.html
怎样能把分页都采上
页:
[1]