It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Javascript expanding box problem

Javascript expanding box problem

Postby kendalbren on Fri May 30, 2008 2:21 am

Hi guys.

I hope you can help with a problem I have. I’m making a new site and I’d like to incorporate some Javascript functionality to do the following.

I’d like to have a news pane which initially shows only the first 2-3 lines of the text with the rest of the text hidden. I’d like to have a “read more” button that expands the box when clicked to show all of the news text.

I’ve included some images of what I’d like to achieve to hopefully show what I mean better.

http://www.tokyorepublik.com/images/initialBox.png First image – Closed box showing 2-3 lines of text only.
http://www.tokyorepublik.com/images/expandedBox.png Second image – The expanded view showing all of the text.

I’ve not got much experience in Javascript so if someone could point me towards a script or tutorial, I’d be very grateful.

Thanks in advance.
kendalbren
 
Posts: 0
Joined: Fri May 30, 2008 2:17 am

Who is online

Users browsing this forum: No registered users and 7 guests