Hi, thanks for your fast answers lately. It´s great to see how good communication works here.
I got trying to make an expanding menu but it doesn´t work.
I first create a new expandingMenus.js with this script:
$(document).ready(function()
{
// First we hide all exhibitis
$("#menu ul li.section-title").nextAll().hide();
// then the active exhibit is showed
$("#menu ul").each(function()
{
$(this).find("li.active").prevAll().nextAll().show();
});
// This is the toggle function
// first it hides all sections
$("#menu ul li.section-title").click(function()
{
$("#menu ul li.section-title").nextAll().hide();
$(this).nextAll().slideToggle("fast");
});
});
and put it into my "js" folder.
In the index.php I added those lines:
path = '/files/gimgs/';
$(document).ready(function()
{
setTimeout('move_up()', 1);
expandingMenu(0);
expandingMenu(1);
expandingMenu(2);
expandingMenu(3);
expandingMenu(4);
expandingMenu(5);
expandingMenu(6);
});
and actually it should work. I also added some lines to make my menu moveable. Maybe thats the reason that it doesn´t work. Maybe I just changed the order wrong or forgot something. I know it will be just a small thing but I am getting sick of making out the problem.
Thanks for your help!
Judith