Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 13th Aug 2012, 12:16 PM   #1
Active Warrior
War Room Member
 
Anthony11690's Avatar
 
Join Date: 2011
Location: Toronto Area, Canada
Posts: 77
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Javascript/jQuery Help, onClick
Share on: 
fb share twitter share gplus share more share

I have a bunch of images in the body each in it's own row in a table.

Right now, I have a main title image, and a content image for each feature.

I want it so only the title images show when page is loaded, and when you click the title image, the content image displays under it, and when you click it again, it disappears.

Can anybody help me out? The link is here: My Company Website
Anthony11690 is offline  
Unread 13th Aug 2012, 02:48 PM   #2
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: 2006
Location: USA
Posts: 1,907
Thanks: 236
Thanked 1,377 Times in 676 Posts
Default
Re: Javascript/jQuery Help, onClick
Share on: 
fb share twitter share gplus share more share

So you want to expand and contract specific sections using Javascript? If so, check this out...

Dynamic Drive DHTML Scripts- Animated Collapsible DIV v2.4

Or if you prefer jQuery...

http://api.jquery.com/slideToggle/

Of course, having all of your content displayed as images (instead of real text) is about the worst thing you could do from an SEO standpoint, but that's a whole 'nother topic.


Brandon Tanner is offline  
The Following User Says Thank You to Brandon Tanner For This Useful Post:
Unread 13th Aug 2012, 04:04 PM   #3
Active Warrior
War Room Member
 
Anthony11690's Avatar
 
Join Date: 2011
Location: Toronto Area, Canada
Posts: 77
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Re: Javascript/jQuery Help, onClick
Share on: 
fb share twitter share gplus share more share

Thanks a lot! got it all working
Anthony11690 is offline  
Closed Thread


Bookmarks

Tags
javascript or jquery, onclick


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:32 AM.