PDA

View Full Version : Animated Collapsible DIV v2.4



miradoro
11-06-2012, 03:54 PM
Hi

I am working with Animated Collapsible DIV v2.4

I was able to set 4 images(img1,img2,img3,img4), on click they open divs 1-4 on top of 'welcome'

Therefore, I have 5 divs: 'welcome', 'div1', 'div2', 'div3', 'div4'

My problem is that when clicking on the image for a second time all my divs go away

For instance:
When you get to the page 'welcome' div is there
If you click on img1...div1 appears on top of 'welcome' which is great
but when you click again on the image both 'welcome' and 'div1' are gone

Can i have 'welcome' appear on second click?

Beverleyh
11-06-2012, 07:54 PM
A link to the DD Script and your site would be most helpful.

miradoro
11-06-2012, 08:03 PM
On animatedcollapse.js lines 63-65 I have


else{
this.slideengine(divid, action) //
this.slideengine(targetgroup.lastactivedivid, 'show') // i added this and shows me back the last div - how do i get a specific div 'welcome' show?

}

Beverleyh
11-06-2012, 08:08 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Please post a link to the page on your site that contains the problematic script so we can check it out.

miradoro
11-06-2012, 08:09 PM
http://www.bfmarketing.com/LNA-3071-Landing-page/

miradoro
11-06-2012, 08:10 PM
If you click on clean energy for a second time...you will see how the content shows up twice...my intention was to have the first div 'welcome' to reappear

div 'welcome' is the first statement you see when you first land on the page

miradoro
11-06-2012, 08:14 PM
Got it !!!

I removed line 61 !!!
//targetgroup.lastactivedivid=divid //remember last active DIV

and i did the magic :)

miradoro
11-06-2012, 08:15 PM
i am sorry i take it back

after doing that...when clicking on the second image
last div remains there :(

miradoro
11-06-2012, 08:23 PM
http://www.bfmarketing.com/LNA-3071-Landing-page/js/animatedcollapse.js

Beverleyh
11-06-2012, 08:23 PM
So which script is it on DD? Please post a link to the page here on the DD site - there are so many resources here that you're asking us to go hunting in a haystack for something that you can provide easily upfront.

If you'd like the help, please post in the correct format;

Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

miradoro
11-06-2012, 08:46 PM
Hi Beverleyh

Here is the link
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

miradoro
11-06-2012, 08:47 PM
I am sorry for the delay...i was looking for the URL which i have saved somewhere on my bookmarks
Thank you in advance for all your help

miradoro
11-07-2012, 02:04 PM
Hi,
I am also wondering if div come drop down from the top....right now they come from the bottom

miradoro
11-07-2012, 02:45 PM
is there a difference between
expand[divid] | collapse[divid] | toggle[divid] ?

miradoro
11-07-2012, 09:30 PM
hi

this is what i have
http://www.bfmarketing.com/LNA-3071-Landing-page/index_nav.html

i am trying to apply toggle on divs and ghost back other buttons (smart eng, smart gas, better environ)

is it possible?

i though i could use <map> tags but i dont think it is the right approach

any advice