it would hide all
remaining
s, and insert a "read more" link. Clicking would expose
the hidden elements and add a "read less" link.
I haven't been able to figure out a way to do this... Can anyone point
me in the right direction? I've posted an example page here:
http://www.cement-site.com/truncator/example.shtml
It's making use of the truncator plugin found here:
http://henrik.nyh.se/2008/02/jquery-html-truncate
(I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
appropriate in this case since it's not intended to truncate/expand
across multiple block-level elements.)
Can this truncator plugin code be modified to count
s rather than
characters? Or is there a simpler/better way to accomplish this?
Thanks!