pang881008 发表于 2011-6-22 12:07:24

求助!!请问这种JS分页怎么写插件!

请问这种JS分页怎么写插件!<script language="JavaScript">       
        function NextAction(act){
                if(act == "first"){
                        document.theForm.curpage.value = "1";
                        document.theForm.submit();
                }
                if(act == "pre"){
                        document.theForm.curpage.value = ""+(parseInt(document.theForm.curpage.value)-1);
                        document.theForm.submit();
                }
                if(act == "next"){               
                        document.theForm.curpage.value = ""+(parseInt(document.theForm.curpage.value)+1);
                        document.theForm.submit();
                }
                if(act == "end"){
                        document.theForm.curpage.value = ""+(parseInt(document.theForm.totalpage.value));
                        document.theForm.submit();
                }
        }
        function changeP(obj)
        {       
                document.theForm.curpage.value = obj.value;
                document.theForm.submit();       
        }
       
       
        function showReplyCount(){
                document.theForm.submit();
        }
       
        </script>

272070210 发表于 2011-6-22 13:11:20

你提供的这些内容好像没有什么用

pang881008 发表于 2011-6-22 13:40:27

回复 2# 272070210
???

272070210 发表于 2011-6-22 13:41:32

你提供的这些代码没有办法判断怎么弄。如果有需要可以联系我定制。

ytfpguu 发表于 2011-6-22 21:33:04

这个我也判断不了。,
页: [1]
查看完整版本: 求助!!请问这种JS分页怎么写插件!