Results 1 to 3 of 3

Thread: Collapsing Div Problem

  1. #1
    Join Date
    Jun 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Collapsing Div Problem

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    Hi All,

    I've been using the above script for a while now, with a great deal of success. I've got, however, a slight niggle in the implementation of the open/close image. Look at this page, it works beautifully. However, when I go 'down' a directory level (or two, it's not actually a folder tree but a php page with .htaccess control), the script still runs fine, but the image is not displayed. Have a look here for example (ignore the fact that all start closed, I've fixed that but it's part of a database overhaul so I haven't uploaded it yet). I've checked the path to the image is correct (again .htaccess rewritten), and so have run out of ideas as to what to do next.

    Apologies if the code seems a bit messy, it's all written by a php script.

    Many thanks,
    Tim

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    From the looks of it the image paths aren't correct:

    Code:
    <a href="#" rel="toggle[post10]" data-openimage="images/collapse.png" data-closedimage="images/expand.png"><img src="images/collapse.png" style="border-width:0" /></a>
    Based on the above, the image path for collapse.png for example translates to: http://arcan3.co.uk/blog/date/2010/6...s/collapse.png , which if you click on it appears broken.
    DD Admin

  3. #3
    Join Date
    Jun 2010
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Many thanks, fixed it by hard coding the path in the php script, in such a way that it works on both my localhost server and my production server.

    Tim

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
  •