Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Javascript/jQuery Help, onClick (https://www.warriorforum.com/programming/654104-javascript-jquery-help-onclick.html)

Anthony11690 13th August 2012 12:16 PM

Javascript/jQuery Help, onClick
 
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

Brandon Tanner 13th August 2012 02:48 PM

Re: Javascript/jQuery Help, onClick
 
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.

Anthony11690 13th August 2012 04:04 PM

Re: Javascript/jQuery Help, onClick
 
Thanks a lot! got it all working


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