Results 1 to 3 of 3

Thread: Animated Collapsible DIV not working in FF and IE

  1. #1
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible DIV not working in FF and IE

    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/dynamici...edcollapse.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!
    Last edited by beberon; 06-03-2011 at 11:24 PM. Reason: Oops, I guess I've posted not in the proper forum - DD JavaScript?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •