Log in

View Full Version : dynamic content



sujata_ghosh
01-29-2009, 12:02 PM
Hi to all!

I am using this script:
http://www.onlywebsitemaintenance.com/29-01-09/faq.html

I want to add some feature into it:

like when a content lenght of perticular question raise to 100 words, it will added automatically "read more.." link into end of the content and when people click on this link it will open this content but full version with content question into next window, from where if someone want to go back they can reach to same place from where they click "read more..." link,

is this possible using JS?

Please help me.

Thanks in advance

Nile
01-30-2009, 04:32 AM
Take a look at substring at the bottom of this page (http://www.quirksmode.org/js/strings.html).

I hope this helps,
Nile.

sujata_ghosh
01-30-2009, 07:02 AM
Thnaks Nile,

I think you have not got my question.

First i need to count total Answer of a Question, if its over 100 words, then make "read more" link at the end of that Answer. when someone click on "read more" link it will take him to new page with that question and answer only, with another link "back to main section", when his click on it, it should take him to original possition.