View Full Version : Collapsing Div Problem

10-09-2010, 11:44 AM
1) Script Title: Animated Collapsible DIV v2.4

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.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 (http://arcan3.co.uk/blog/), 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 (http://arcan3.co.uk/blog/date/2010/6/) 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,

10-10-2010, 06:46 AM
From the looks of it the image paths aren't correct:

<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/images/collapse.png , which if you click on it appears broken.

10-10-2010, 08:37 AM
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.