View Full Version : Animated Collapsible DIV not working in FF and IE

06-03-2011, 10:48 PM
Hi everyone!

For the last two days I've been trying to make this script work as it is supposed to: http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
It works well in Google Chrome, but doesn't in FF and IE. I think I've done all as it is said in the link. Here is my page: http://www.stdobrev.com/archmenu.html#
(only "ARTHILL" link works).
I've changed the DTD and all other possible formats, tags, links ... I could find on the web and it still doesn't work in FF and IE (maybe also other browsers, I'm not familiar with). I've read all of the posts about this issue and I couldn't find a solution for myself. Actually, this is a great script, I'll be very sad if I don't make it run :)

Thank you in advance for taking the time to read my post, any help is appreciated!

06-04-2011, 04:03 AM
Only one DOCTYPE allowed per page and it must be the first thing in the source code. But that's not causing the problem here.

The problem is the target attribute. Remove the highlighted:

<a href="javascript:animatedcollapse.show('arthilltext')" target="main" >ART<span class="listlist">H</span>ILL<span class="listlist">11</span></a>

06-04-2011, 10:49 AM
Wow, works great in all browsers! Thank you for the quick reply! Actually, I needed this "target" because I want to open a new page in another frame when clicking on "ARTHILL" and I made it like this:

<div class="list" id="arthill" align="right"><a href="arthill.html" target="main" onclick="javascript:animatedcollapse.show('arthilltext')" >ART<span class="listlist">H</span>ILL<span class="listlist">11</span></a></div>

Take a look on: http://www.stdobrev.com/architecture.html#

And it works great in all browsers, so I am happy! Thank you again, John!