max = 5; comList = $("#comment_pager li"); function showCommentPage(num) { $(comList).hide("slow"); from = (num-1)*max; to = from+max; for (i=from;i"+i+""; } commentNavi += ""; $("#comment_pager li:last").after("

"+commentNavi+"

"); cpsa = $("#comment_pager span a"); $(cpsa).css("padding","3px"); $(cpsa).css("border","solid 1px"); $(cpsa).css("margin","3px"); showCommentPage(1);