开发者

dynamic shortened text areas with "See more" link

I need to add text areas to my website with the following charateristics:

  • Only the first 2 lines should be visible with a "See more" link.

  • When the user clicks on see more the remaining text is displayed without page refresh...

It should be similar to Facebook "See more" functionality, showing the complete comments content, if these are shortened.

Optionally I would like to use a sliding effect to show the full content of the text 开发者_如何学Pythonarea.

thanks


The easiest way I can think of to achieve the effect you're looking for would be to load the full text, but then use something like the jQuery Expander Plugin to take care of hiding the "extra" text until a user chooses to click on the link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜