Collapso - V7 question

Expanding / Collapsing, search engine friendly, Section menu.
Post Reply
kevster
Posts: 13
Joined: Wed Jul 04, 2007 12:54 pm

Collapso - V7 question

Post by kevster »

Is it easy/possible to have the click action on the cllapso menu do the same as clicking on the + icon?

So if you click on the menu text it opens the menu up rather than take you to the relevant section? not sure if this is something I can update in the js code or if it is a pain?

thx, Kevin
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

This would be very hard to do.

As it's now over a year since V8 came out I'm reluctant to spend any effort on adding extra functionality to V7 patches. It would probably be only used by one person.

What you could possibly do is to make the intermediate links inactive. To do this edit collapso-5v7.js and look for the 1st occurrence of

Code: Select all

      bits[1] = '<a class="nsa" href="' + urls[i].sURL + '">' + names[i].sName + '</a>';
Replace with

Code: Select all

      bits[1] = names[i].sName;
NB above is untested.
Norman
kevster
Posts: 13
Joined: Wed Jul 04, 2007 12:54 pm

Post by kevster »

fair enough, thanks anyway for the snippet, this may be enough :wink:
Post Reply