jTruncate - Text Truncation for jQuery

jTruncate provides simple yet customizable truncation for text entities in your web page. This text truncation plugin allows you to customize nearly every aspect of the truncation operation.

The following options are provided:

  • length: The number of characters to display before truncating.
  • minTrail: The minimum number of "extra" characters required to truncate.
  • moreText: The text to use for the "more" link.
  • lessText: The text to use for the "less" link.
  • ellipsisText: Defaults to "..." to append to the truncated portion.
  • moreAni: The speed argument for the show() method.
  • lessAni: The speed argument for the hide() method.

 

w10schools
2014-01-27 01:03:01
Comments
Leave a Comment

Please login to continue.