My leftside Nav is working almost perfectly. The main remaing problem is that when you click on a top level a category (the actual category name, not the triangle) you are taken that category and that category opens up on the leftside nav. I have a sample page setup where pom poms have been selected (li contains class=selected), but it’s cheerleading uniforms thats opened up.
http://www.omnicheer\ est\index.html
For the life of me I can’t figure out why this is happening. The bahavior works perfectly on the sub categories and sub-sub categories. Please help. Thanks.
Here’s the HTML/CSS:
[COLOR=#0000ff]<![/COLOR][COLOR=#800000]DOCTYPE [/COLOR][COLOR=#ff0000]HTML[/COLOR][COLOR=#ff0000]PUBLIC[/COLOR][COLOR=#0000ff] "-//W3C//DTD HTML 4.0 Transitional//EN">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]html[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]head[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]title[/COLOR][COLOR=#0000ff]>[/COLOR]Pom Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]title[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]meta [/COLOR][COLOR=#ff0000]http-equiv[/COLOR][COLOR=#0000ff]="Content-Type" [/COLOR][COLOR=#ff0000]content[/COLOR][COLOR=#0000ff]="text/html; charset=iso-8859-1">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]META [/COLOR][COLOR=#ff0000]NAME[/COLOR][COLOR=#0000ff]='keywords' [/COLOR][COLOR=#ff0000]CONTENT[/COLOR][COLOR=#0000ff]=''>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]META [/COLOR][COLOR=#ff0000]NAME[/COLOR][COLOR=#0000ff]='description' [/COLOR][COLOR=#ff0000]CONTENT[/COLOR][COLOR=#0000ff]=''>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]script [/COLOR][COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="text/javascript" [/COLOR][COLOR=#ff0000]src[/COLOR][COLOR=#0000ff]="accordion4/jquery.pack.js">[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]script[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]script [/COLOR][COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="text/javascript" [/COLOR][COLOR=#ff0000]src[/COLOR][COLOR=#0000ff]="accordion4/jquery.easing.1.3.js">[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]script[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]script [/COLOR][COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="text/javascript" [/COLOR][COLOR=#ff0000]src[/COLOR][COLOR=#0000ff]="accordion4/leftNavMenu.js">[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]script[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]style [/COLOR][COLOR=#ff0000]type[/COLOR][COLOR=#0000ff]="text/css">[/COLOR]
[COLOR=#008000]<!--[/COLOR]
[COLOR=#800000]* [/COLOR]{
[COLOR=#ff0000]margin[/COLOR]:[COLOR=#0000ff]0[/COLOR];
[COLOR=#ff0000]padding[/COLOR]:[COLOR=#0000ff]0[/COLOR];
[COLOR=#ff0000]font-family[/COLOR]:[COLOR=#0000ff]Arial, Helvetica, sans-serif[/COLOR];
[COLOR=#ff0000]font-size[/COLOR]:[COLOR=#0000ff]11px[/COLOR];
[COLOR=#ff0000]color[/COLOR]:[COLOR=#0000ff]#666[/COLOR];
}
[COLOR=#800000]#leftnav [/COLOR]{
[COLOR=#ff0000]width[/COLOR]:[COLOR=#0000ff]160px[/COLOR];
[COLOR=#ff0000]margin[/COLOR]:[COLOR=#0000ff]0 5px 25px 0[/COLOR];
[COLOR=#ff0000]float[/COLOR]:[COLOR=#0000ff]left[/COLOR];
[COLOR=#ff0000]text-align[/COLOR]: [COLOR=#0000ff]left[/COLOR];
}
[COLOR=#008000]/* Category tree */[/COLOR]
[COLOR=#800000]ul.tree[/COLOR],[COLOR=#800000] ul.tree ul[/COLOR]{ [COLOR=#ff0000]list-style-type[/COLOR]:[COLOR=#0000ff]none[/COLOR]; }
[COLOR=#800000]ul.tree li[/COLOR]{
[COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]7px[/COLOR];
[COLOR=#ff0000]margin-left[/COLOR]:[COLOR=#0000ff]5px[/COLOR];
}
[COLOR=#800000]ul.tree a[/COLOR]{ [COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]2px[/COLOR]; [COLOR=#ff0000]text-decoration[/COLOR]:[COLOR=#0000ff]none[/COLOR]; [COLOR=#ff0000]border[/COLOR]:[COLOR=#0000ff]none[/COLOR]; }
[COLOR=#800000]ul.tree a.selected[/COLOR]{ [COLOR=#ff0000]font-weight[/COLOR]:[COLOR=#0000ff]bold[/COLOR]; }
[COLOR=#800000]#leftNavMenu [/COLOR]{
[COLOR=#ff0000]padding[/COLOR]:[COLOR=#0000ff]0.5em 0.7em 0pt[/COLOR];
[COLOR=#ff0000]background-color[/COLOR]: [COLOR=#0000ff]#fff[/COLOR];
[COLOR=#ff0000]min-height[/COLOR]:[COLOR=#0000ff]20px[/COLOR];
}
[COLOR=#800000]#leftNavMenu ul.tree [/COLOR]{ [COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]0.5em[/COLOR]; }
[COLOR=#800000]#leftNavMenu ul.dhtml[/COLOR]{ [COLOR=#ff0000]display[/COLOR]:[COLOR=#0000ff]none[/COLOR]; }
[COLOR=#800000]#leftNavMenu ul.tree li [/COLOR]{
[COLOR=#ff0000]border[/COLOR]: [COLOR=#0000ff]none[/COLOR];
[COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]15px[/COLOR];
[COLOR=#ff0000]margin-left[/COLOR]:[COLOR=#0000ff]0[/COLOR];
[COLOR=#ff0000]font-weight[/COLOR]:[COLOR=#0000ff]bold[/COLOR];
[COLOR=#ff0000]font-size[/COLOR]:[COLOR=#0000ff]13px[/COLOR];
[COLOR=#ff0000]line-height[/COLOR]:[COLOR=#0000ff]13px[/COLOR];
[COLOR=#ff0000]margin-top[/COLOR]:[COLOR=#0000ff]2px[/COLOR];
}
[COLOR=#800000]#leftNavMenu ul.tree li ul li[/COLOR]{
[COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]15px[/COLOR];
[COLOR=#ff0000]background[/COLOR]:[COLOR=#0000ff]none[/COLOR];
[COLOR=#ff0000]font-size[/COLOR]:[COLOR=#0000ff]11px[/COLOR];
[COLOR=#ff0000]font-weight[/COLOR]:[COLOR=#0000ff]normal[/COLOR];
}
[COLOR=#800000]#leftNavMenu ul.tree li ul li ul li[/COLOR]{
[COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]15px[/COLOR];
[COLOR=#ff0000]font-size[/COLOR]:[COLOR=#0000ff]9px;[/COLOR]
}
[COLOR=#800000]#leftNavMenu ul.tree a[/COLOR]{
[COLOR=#ff0000]padding-left[/COLOR]:[COLOR=#0000ff]0[/COLOR];
[COLOR=#ff0000]color[/COLOR]:[COLOR=#0000ff]#888[/COLOR];
}
[COLOR=#800000]div#leftNavMenu ul.tree a:hover[/COLOR]{
[COLOR=#ff0000]text-decoration[/COLOR]:[COLOR=#0000ff]none[/COLOR];
[COLOR=#ff0000]color[/COLOR]:[COLOR=#0000ff]#cc3399[/COLOR];
}
[COLOR=#800000]div#leftNavMenu ul.tree a.selected[/COLOR]{
[COLOR=#ff0000]color[/COLOR]: [COLOR=#0000ff]#888[/COLOR];
[COLOR=#ff0000]font-weight[/COLOR]: [COLOR=#0000ff]bold[/COLOR];
}
[COLOR=#800000]div#leftNavMenu span.grower[/COLOR]{
[COLOR=#ff0000]display[/COLOR]:[COLOR=#0000ff]block[/COLOR];
[COLOR=#ff0000]float[/COLOR]:[COLOR=#0000ff]left[/COLOR];
[COLOR=#ff0000]background-position[/COLOR]: [COLOR=#0000ff]0px 3px[/COLOR];
[COLOR=#ff0000]background-repeat[/COLOR]: [COLOR=#0000ff]no-repeat[/COLOR];
[COLOR=#ff0000]width[/COLOR]:[COLOR=#0000ff]14px[/COLOR];
[COLOR=#ff0000]height[/COLOR]:[COLOR=#0000ff]15px[/COLOR];
[COLOR=#ff0000]margin[/COLOR]: [COLOR=#0000ff]0 0 0 -15px!important[/COLOR];
[COLOR=#ff0000]margin[/COLOR]: [COLOR=#0000ff]0 0 0 -6px[/COLOR];
[COLOR=#ff0000]padding[/COLOR]: [COLOR=#0000ff]0[/COLOR];
}
[COLOR=#800000]div#leftNavMenu span.OPEN [/COLOR]{
[COLOR=#ff0000]background-image[/COLOR]: [COLOR=#0000ff]url(contract.gif)[/COLOR];
[COLOR=#ff0000]cursor[/COLOR]:[COLOR=#0000ff]pointer[/COLOR];
}
[COLOR=#800000]div#leftNavMenu span.CLOSE[/COLOR]{
[COLOR=#ff0000]background-image[/COLOR]: [COLOR=#0000ff]url(expand.gif)[/COLOR];
[COLOR=#ff0000]cursor[/COLOR]:[COLOR=#0000ff]pointer[/COLOR];
}
[COLOR=#008000]-->[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]style[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]head[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]body[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]div [/COLOR][COLOR=#ff0000]id[/COLOR][COLOR=#0000ff]="leftnav">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]div [/COLOR][COLOR=#ff0000]id[/COLOR][COLOR=#0000ff]="leftNavMenu">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul [/COLOR][COLOR=#ff0000]class[/COLOR][COLOR=#0000ff]="tree dhtml">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Cheerleading Uniforms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Double-Knit Cheer Uniforms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Nylon Strech Cheerleader Uniforms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Uniform Packages[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li [/COLOR][COLOR=#ff0000]class[/COLOR][COLOR=#0000ff]="selected">[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Pom Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]In-Stock Cheer Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Holographic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Metallic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Plastic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Youth Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Custom Cheerleading Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Youth Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Flash Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Holographic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Metallic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Plastic Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Wetlook Poms[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Cheerleading Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Asics Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Adidas Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Chasse Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Converse Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Kaepa Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Nike shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Power Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Reebok Shoes[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]<[/COLOR][COLOR=#800000]a [/COLOR][COLOR=#ff0000]href[/COLOR][COLOR=#0000ff]="#" >[/COLOR]Cheer Skirts[COLOR=#0000ff]</[/COLOR][COLOR=#800000]a[/COLOR][COLOR=#0000ff]>[/COLOR][COLOR=#0000ff]</[/COLOR][COLOR=#800000]li[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]ul[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]div[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]div[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]body[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#800000]html[/COLOR][COLOR=#0000ff]>[/COLOR]
Here’s the Javascript for leftNavMenu.js:
function autoUrl(name, dest) {
var loc;
var id_list;
id_list = document.getElementById(name);
loc = id_list.options[id_list.selectedIndex].value;
if (loc != 0)
location.href = dest+loc;
return ;
}
/*
** show or hide element e depending on condition show
*/
function toggle(e, show)
{
e.style.display = show ? '' : 'none';
}
function toggleMultiple(tab)
{
var len = tab.length;
for (var i = 0; i < len; i++)
if (tab[i].style)
toggle(tab[i], tab[i].style.display == 'none');
}
/**
* Show dynamicaly an element by changing the sytle "display" property
* depending on the option selected in a select.
*
* @param string $select_id id of the select who controls the display
* @param string $elem_id prefix id of the elements controlled by the select
* the real id must be : 'elem_id'+nb with nb the corresponding number in the
* select (starting with 0).
*/
function showElemFromSelect(select_id, elem_id)
{
var select = document.getElementById(select_id);
for (var i = 0; i < select.length; ++i)
{
var elem = document.getElementById(elem_id + select.options[i].value);
if (elem != null)
toggle(elem, i == select.selectedIndex);
}
}
/**
* Get all div with specified name and for each one (by id), toggle their visibility
*/
function openCloseAllDiv(name, option)
{
var tab = $('*[name='+name+']');
for (var i = 0; i < tab.length; ++i)
toggle(tab[i], option);
}
/**
* Toggle the value of the element id_button between text1 and text2
*/
function toggleElemValue(id_button, text1, text2)
{
var obj = document.getElementById(id_button);
if (obj)
obj.value = ((!obj.value || obj.value == text2) ? text1 : text2);
}
function addBookmark(url, title)
{
if (window.sidebar)
return window.sidebar.addPanel(title, url, "");
else if ( window.external )
return window.external.AddFavorite( url, title);
else if (window.opera && window.print)
return true;
return true;
}
function writeBookmarkLink(url, title, text, img)
{
var insert = '';
if (img)
insert = writeBookmarkLinkObject(url, title, '<img src="' + img + '" alt="' + escape(text) + '" title="' + escape(text) + '" />') + ' ';
insert += writeBookmarkLinkObject(url, title, text);
document.write(insert);
}
function writeBookmarkLinkObject(url, title, insert)
{
if (window.sidebar || window.external)
return ('<a href="javascript:addBookmark(\\'' + escape(url) + '\\', \\'' + escape(title) + '\\')">' + insert + '</a>');
else if (window.opera && window.print)
return ('<a rel="sidebar" href="' + escape(url) + '" title="' + escape(title) + '">' + insert + '</a>');
return ('');
}
//animate the opening of the branch (span.grower jQueryElement)
function openBranch(jQueryElement, noAnimation) {
jQueryElement.addClass('OPEN').removeClass('CLOSE');
if(noAnimation)
jQueryElement.parent().find('ul:first').show();
else
jQueryElement.parent().find('ul:first').slideDown();
}
//animate the closing of the branch (span.grower jQueryElement)
function closeBranch(jQueryElement, noAnimation) {
jQueryElement.addClass('CLOSE').removeClass('OPEN');
if(noAnimation)
jQueryElement.parent().find('ul:first').hide();
else
jQueryElement.parent().find('ul:first').slideUp();
}
//animate the closing or opening of the branch (ul jQueryElement)
function toggleBranch(jQueryElement, noAnimation) {
if(jQueryElement.hasClass('OPEN'))
closeBranch(jQueryElement, noAnimation);
else
openBranch(jQueryElement, noAnimation);
}
//when the page is loaded...
$(document).ready(function () {
//to do not execute this script as much as it's called...
if(!$('ul.tree.dhtml').hasClass('dynamized'))
{
//add growers to each ul.tree elements
$('ul.tree.dhtml ul').prev().before("<span class='grower OPEN'> </span>");
//dynamically add the '.last' class on each last item of a branch
$('ul.tree.dhtml ul li:last-child, ul.tree.dhtml li:last-child').addClass('last');
//collapse every expanded branch
$('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide();
$('ul.tree.dhtml').show();
//open the tree for the selected branch
$('ul.tree.dhtml .selected').parents().each( function() {
if ($(this).is('ul'))
toggleBranch($(this).prev().prev(), true);
});
toggleBranch( $('ul.tree.dhtml .selected').prev(), true);
//add a fonction on clicks on growers
$('ul.tree.dhtml span.grower').click(function(){
toggleBranch($(this));
});
//mark this 'ul.tree' elements as already 'dynamized'
$('ul.tree.dhtml').addClass('dynamized');
}
});
Again thanks for your time any help you can give.
– Sandra