Sub Menu
Links Menu
Online Users

In total there are 694 users online :: 2 registered, 0 hidden and 692 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

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

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

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

PostAuthor: hueter » Mon Aug 13, 2007 9:56 am

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
Last edited by hueter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
hueter
Newbie
Newbie
 
Posts: 14
Likes: 0 post
Liked in: 0 post
Joined: Thu Jul 19, 2007 5:36 pm
Cash on hand: 0.00

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

PostAuthor: hueter » Wed Aug 15, 2007 12:05 pm

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>
Last edited by hueter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
hueter
Newbie
Newbie
 
Posts: 14
Likes: 0 post
Liked in: 0 post
Joined: Thu Jul 19, 2007 5:36 pm
Cash on hand: 0.00


Return to General Discussion

Who is online

Registered users: Bing [Bot], Google [Bot]

cron