More Collapso info, please.

Expanding / Collapsing, search engine friendly, Section menu.
Post Reply
Yo-yo Monster
Posts: 6
Joined: Fri Mar 31, 2006 8:38 pm
Location: York, England
Contact:

More Collapso info, please.

Post by Yo-yo Monster »

Hi

I'm trialling Collapso at the moment and am very pleased so far. Two things, however.

Thing the first:

Is it possible to cut the menu depth down to 2 levels, and if so, how?

Also:

I'm using the Catalog V.7 "Best Sellers" theme as a base for my site. In Act_BrochurePrimary above the Yahoo Sections script, there is no line
<!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
Instead, the section reads:
<SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function YahooSections(ar)
{
var strIDs = '';
for (var i=1;i<=ar.length;i++)
{
if (ar.sURL != null)
{
strIDs += '<a href="' + ar.sURL + '"><span class="actsmallheading"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar.sName + '</font></b></span></a><br>';

strIDs += '<br>'
{
if (ar.pChild)
{
for (var j=1;j<=ar.pChild.length;j++)
{
if (ar.pChild[j].sURL != null)
{
strIDs += '<a href="' + ar.pChild[j].sURL + '"><span class="actxxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + ar.pChild[j].sName + '</font></span></a><br>';
}
}
}
}
}
}
return strIDs
}
//-->
</SCRIPT>


How do I implement Collapso here?

I've tried once and got a very strange layout with double menu entries.

I'm sorry if these questions are tedious or stupid, but my knowledge of JavaScript is vanishingly small.

Any help would be greatly appreciated.
Peace, Love & Jellybabies
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

Menu depth to 2 levels only. This will require paid for customisation.

Collapso on Brochure. Replace the lump you quoted above with

Code: Select all

<SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT> 
<SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT> 
<!-- START Collapsing Menu - www.drillpine.biz/actinicstuff -->
<LINK REL=STYLESHEET HREF="collapso-4.css">
<SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></SCRIPT> 
<SCRIPT LANGUAGE="JavaScript" SRC="collapso-4.js" TYPE="text/javascript"></SCRIPT>
<!-- END Collapsing Menu - www.drillpine.biz/actinicstuff -->
Norman
Yo-yo Monster
Posts: 6
Joined: Fri Mar 31, 2006 8:38 pm
Location: York, England
Contact:

Post by Yo-yo Monster »

Thanks for that. I was getting nervous taking lumps out in case I did something drastic.....

It's been that sort of a week. :?
Peace, Love & Jellybabies
Post Reply