View Single Post
  #14  
Old 03-20-2009, 03:28 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
The code to show the last comment is this: $("ul li:last", this).show(); you can modify that to show a different number.

You could find the number of comments and then subtract the number of comments you wanted to show plus 1 and show all comments greater than that.

I'm not sure how it would work if you had less comments than the number you wanted to show. It's possible that the script could break if you tried to show comments greater than a negative value so there might need to be some checking to show all comments if the number you want to show is equal or more.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote