Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Javascript expanding box problem



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
kendalbren



Joined: 30 May 2008
Posts: 1

PostPosted: Fri May 30, 2008 3:21 am    Post subject: Javascript expanding box problem Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap