This is a discussion on "Quote extender" within the JavaScript Forum section. This forum, and the thread "Quote extender are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Quote extender
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Quote extender
Hi all,
I'm not sure if its possible to do this in CSS, but I have a really lengthy quote to put onto a webpage and wondered if theres a way to put it so maybe the first few lines are displayed followed by a small (read more) text link which when clicked then immediately displays the rest of the quote instead of taking the user to a seperate page altogether. Any ideas as to how to employ CSS to do this? Or if its a JavaScript thing can someone point me in the right direction. Regards, p. |
|
|
|
|||
|
Re: Quote extender
You can do this with javascript:
|
|
||||
|
Re: Quote extender
Or with a server-side language like PHP.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: Quote extender
Yeah ... if his content is already drawn from a DB using PHP ... I would keep consistent and use PHP here too
|
|
|||
|
Re: Quote extender
Thanks for the ideas guys. I was looking at a JavaScript widget they use at Flixster.com where the synopsis for a movie is given in two parts.
Regards. |
|
||||
|
Re: Quote extender
I'm just wondering what the purpose of this is?
Like I asked in my first reply, is your content (ie: this quote) stored in a DB? If not ... then why use JS at all? If everything is hard coded in the document, then why not just manually add a "Read more" link? |
|
|||
|
Re: Quote extender
hi Karinne, to answers your question. The content is not stored in a DB but is hard coded in the document but I wanted a convenient way to not cause the user to get overloaded by seeing too much info at once on screen. That way if they are interested by what they can see they can click 'read more' and more info will appear isntead of taking them to a whole new page.
The suggestion that Lchad provided above seems to work well I just need to a solution now to make the (read me) link in mid-text disappear on click as the new text is revealed. Any ideas? |
|
||||
|
Re: Quote extender
Ah ... gotcha! Now I understand.
I'll move this to the JS forum then |
|
|||
|
Re: Quote extender
Thanks Karinne, hopefully I'll get more help if it was in the JS forum too!
|
![]() |
| Tags |
| extender, quote |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looking for job quote calculator | bonnit | PHP Forum | 3 | May 17th, 2008 13:29 |
| Website Quote | Deano | Website Planning | 0 | Jan 11th, 2007 16:31 |
| stock quote applet... | wlandymore | Other Programming Languages | 0 | Nov 26th, 2006 16:41 |
| Freakish ASP quote handling | jakyra | Classic ASP | 7 | Sep 17th, 2003 17:11 |