Thanks guys I solved the issue just before leaving yesterday at 18 o'clock (15 hours ago) and could not check your answers at home in the meaning time. My issue was due to a duplicate call to the menu. Still thanks a lot Joel for pointing me to the error in the params I use.
BTW, I have 2 piece of code I'm using in association with superfish. One is working well, but I could never got the second one running correctly. I would like to know if it is of any interested or if I should keep that for me... The first one highlights the item currently selected. I works pretty well, and could be improved to handle types sort of url. $('.nav li a').each(function(){ href = $(this).attr('href').split('/'); href = $(this).attr('href').replace('http://'+document.location.hostname, ''); path = document.location.pathname; if (path.charAt(path.length-1) == '/') path = path+'index.html'; if (href == path){ $(this).parent().addClass('selected'); $(this).parent().parent().parent().children('a').addClass('selected'); $(this).addClass('selected'); / } }); The second tries to reset the width of the submenu to the width of the parent item. Issue is that at some point jQuery cant get the width of li elements. So here I just have what seemed to be working yesterday. $('.nav>li>a').each(function(){ $width = $(this).width(); $(this).parent().children('ul').each(function(){ $ulwidth = $(this).width(); if ($ulwidth < $width){ $(this).width($width); } }); }); If I add the following inside of the second "each", it will fail and $liwidth will be always "0" $(this).children('li').each(function(){ $liwidth = $(this).width(); }); -Olivier On 10/4/07, Giuliano Marcangelo <[EMAIL PROTECTED]> wrote: > > Joel, > > Have just checked the menu .............but now this behaviour is not > occuring.......menu works 100% correctly > > > > > On 03/10/2007, Joel Birch <[EMAIL PROTECTED]> wrote: > > > > > > Giuliano: That's an interesting point of data to have, so thanks for > > that. > > > > Olivier: although I couldn't replicate the problem you described, I > > did notice that the code to initialise Superfish is wrong. You have > > this: > > > > $(document).ready(function(){ > > $(".nav").superfish({animation : { > > opacity:"show",height:"show",delay:100,speed:"fast"} > > }); > > }); > > > > Whereas it should be this, (assuming I have interpreted your intention > > correctly): > > > > $(document).ready(function(){ > > $(".nav").superfish({ > > animation : {opacity:"show",height:"show"}, > > delay:100, > > speed:"fast" > > }); > > }); > > > > And commented: > > > > $(document).ready(function(){ > > $(".nav").superfish({ > > animation : {opacity:"show",height:"show"}, /* > > equivalent to first > > parameter of .animate() */ > > delay:100, /* this is the mouseout delay before submenu > > closes */ > > speed:"fast" /* this is the animation speed - equivalent > > to the > > second parameter of .animate() */ > > }); > > }); > > > > Joel Birch. > > > >