944,054 Members | Top Members by Rank

Ad:
Apr 8th, 2007
0

content box display limit

Expand Post »
I have searched many sites looking for this solution and have been unsuccessful. In dynamic drive, there is a new collapsible content box (Switch Content Script II) that almost does what I need. To wit:
Switch Content Script II adds contact/expand functionality to any content using icons such as an image as the toggling interface. Apply it to content on your page you wish to give the viewer the option to hide. Cookies are used to remember and recall each content's last state.
Instead of displaying coded content, I would like to display 4 contnet boxes, each displaying content from a server side file using php. I get this to work fine as coded in DD. Since I am displaying the contents of 4 files, I would like to limit the display in each box to the first five lines in the file, with [more] appended to the last line. When the [more] is selected, the remaining lines would appear in the content box, extending its size and overlaying the other boxes. Any help on this would be appreciated. Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bobvaz is offline Offline
2 posts
since Mar 2007
Apr 9th, 2007
0

Re: content box display limit

You are making this too hard.

Why not just have a truncted version of each file displayed on your master page (including an a tag for the link), and open a new page for each of the four files?
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Apr 10th, 2007
0

Re: content box display limit

Thanks for the reply - will give it a try, but client may not like second page. Any other options?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bobvaz is offline Offline
2 posts
since Mar 2007
Apr 17th, 2007
0

Re: content box display limit

Why is he insisting on only one page?

You can put buttoms on each of the pages to change to any of the other pages.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Firefox2.0 and margin-top
Next Thread in HTML and CSS Forum Timeline: We look for coding partners





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC