> >>Basically, we need some way to code a "Show More" function that would allow
> >>us to take a long piece of text, shorten it to X maximum lines, then have a
> >>"Read more" link that when clicked would display the rest of the text on
> >>the page below the first half.

There you go:
http://icant.co.uk/sandbox/morecontentlinks/

I didn't use any fancy word counting or anything, but instead you need
to set a div with the class "more" around all the elements you want
hidden.

-- 
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to