1) Script Title:
Animated collapse DIV v2.4
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...edcollapse.htm
3) Describe problem:
I wish to use the script along with SEO, as in mod_rewrite, so visitors/google can access my site through other URLS and have the DIV opened that the URL asks for (for example 'portfolio').
Unfortunately when I access through mod_rewrite, the DIV doesn't expand as planned. When I access the full url, it does.
In short:
This does NOT work: http://www.mooimentha.nl/test/portfolio/
And this does: http://www.mooimentha.nl/test/index....ddiv=portfolio
The ReWrite is as follows:
Any help would greatly be appreciated!Code:RewriteRule ^portfolio/$ index.php?expanddiv=portfolio
[EDIT]
I just found the following line n the animatedcollapse.js:
So it would seem I need an alternative piece/kind of script to pull the information, possibly combined with PHP? I can't seem to get my head around what to do right now...Code:window.location.search.match(/expanddiv=([\w\-_,]+)/i) //search for expanddiv=divid or divid1,divid2,etc



Reply With Quote
It's really odd, cuz if I add an alert in the script, I see that it does return the right data, but it's not getting picked up by the rest of the script, thus causing the lack of expanding.

Bookmarks