Page 1 of 1

How Can I Make the Site Descr Block Expand/Contractable?

PostPosted: Mon Aug 13, 2007 10:56 am
Author: hueter
Hello,

My website has a very long site de.scription block, above the news. I was wondering what the code would be to make it cut short at first with an expand/contract button (like quotes and code snippets are). This way the entire length of the paragraphs can be on the main page but the news still visible so you don't have to scroll all the way down. <img>


Thanks,
-Huet

Re: How Can I Make the Site Descr Block Expand/Contractable?

PostPosted: Wed Aug 15, 2007 1:05 pm
Author: hueter
Ah, I found an answer myself.

I used this .script from Dynamic Drive DHTML at Java.script http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm


Changed the block to HTML from BBCode, pasted the 'Body' Text inside the block, edited it to my needs, included the reference file in the templates directory, and edited the Overall_Header.tpl file to match.

<img>