User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 375,170 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,189 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1948 | Replies: 3
Reply
Join Date: Mar 2007
Posts: 2
Reputation: bobvaz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bobvaz bobvaz is offline Offline
Newbie Poster

content box display limit

  #1  
Apr 8th, 2007
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,433
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 99
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: content box display limit

  #2  
Apr 9th, 2007
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?
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Mar 2007
Posts: 2
Reputation: bobvaz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bobvaz bobvaz is offline Offline
Newbie Poster

Re: content box display limit

  #3  
Apr 10th, 2007
Thanks for the reply - will give it a try, but client may not like second page. Any other options?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,433
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 99
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: content box display limit

  #4  
Apr 17th, 2007
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.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 11:54 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC