I've followed Ross Cairns' instruction (www.rosscairns.com/downloads ) to set up an expandable menu, but it's showing no signs of working.
The website is http://tinyurl.com/cculbs
I've followed Ross Cairns' instruction (www.rosscairns.com/downloads ) to set up an expandable menu, but it's showing no signs of working.
The website is http://tinyurl.com/cculbs
the relevant bit of code looks like this:
$(document).ready(function()
{
    setTimeout('move_up()', 1);
    expandingMenu(5);
});
Well, for starters it's not setup right...try this:
expandingMenu(0);
expandingMenu(1);
expandingMenu(3);
Replacing the exsiting rule. The numbers refer to the ul groups...and with code you usually start with 0 not 1. So, we are applying the mene to the first, second and fourth ul groups (because they have subpages).
See how it goes.
Thanks for the help Vaska, having no joy with that code though.
I had 5 down because it's the menu-id for the portfolio section, i didn't realise it was meant to be ul groups. Where are the ul-groups defined? Simply by their order on the page?
Where are the ul-groups defined? Simply by their order on the page?
Yep.
do you have any clue why it might not be working then?
thanks again for all the help!
I don't think the expandable works on chronological sections, there's nothing to click on. Right?
Ah...you could be right about that.
Would it not be the year that's clickable?
Hmm.. it was originally all entered under the one year (2009) and the menu heading was "portfolio". If I returned it to that state would the word portfolio expand when clicked?
You could try it...something else doesn't seem right to me. Have you validated the page?
hi there & thanxs for this wonderfull tool and great community of people. 4 weeks ago i thought i would never be able to create my own site.
so basically my question is:
I've also followed Ross Cairns' instructions, and everything is doing well except that the welcome/bienvenue page doesn't work anymore after you have clicked on one selection of the menu.
any idea why ?
and well the site is http://benipi.com
you create tis bit of text (accueil/welcome) in the pre nav ?
your link is not working at all in all the cases…
Why < a onclick="do_click();" href="http://benipi.com/">Accueil - Welcome< /a>
Is the ; not coming after the " ?
Maybe try a simple < a href="http://benipi.com/">Accueil - Welcome< /a> (without spaces after
thanxs !
i'm trying to configure my expandable menu so that it keeps just the active one open..
any clue??
still don't have my site on line!
Put it online...then maybe we can help. It's rather hard for us to know what you are doing right now...
thanks!
but i think that my problem is in the .js file:
function expandingMenu(num) {
    var speed = 500;
    
    var item_title = $("#menu ul").eq(num).children(":first");
    var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
    
    /* hide items if not active */
    if (items.is(".inactive") == false) {
        items.hide();
}
/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).toggle(
function () {
items.show(speed);
}, function () {
items.hide(speed);
Sorry, this tells us nothing. We really can't say much unless you put it online...otherwise all we're doing is guesswork.
the problem is solved:
/* hide items if not active */
    if (items.is(".active") == false) {
        items.hide();
This thread has been closed, thank you.