If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

In the ones where it fails, it works OK on the first drop-down menu it produces (Sparky - one drop-down menu), but then falls over, putting the rest of the menu on the left hand side of the browser window. Those subsequent sub-menus can be seen on mouseover.

It's frustrating, as it works once - why not the rest? (the original script had 1 menu + 3 sub-menus, so probably down to my code for the second drop-down menu onwards).

i don't think there will be many volunteers to dig out what is in the linked scripts somewhere in the internet and to guess what was changed by you in the unbeknownst original script... if the original script worked good then post it here and show what exactly was changed

Hi, thanks very much for getting back to me.
I haven't changed any of the JavaScript (wouldn't know where to start), only the HTML / CSS. When I said " I amended it" I meant the HTML / CSS that was also downloaded. On re-reading my post, I realise now that it's not clear and it's my fault. Apologies.

To recap -the whole thing works on all the drop-down menus in certain browsers and works on the first in the others. I was hoping that someone might have an idea what was wrong by looking at how the script(s) run or come across something similar before.

Hi, thanks very much for getting back to me.
I haven't changed any of the JavaScript (wouldn't know where to start), only the HTML / CSS. When I said " I amended it" I meant the HTML / CSS that was also downloaded. On re-reading my post, I realise now that it's not clear and it's my fault. Apologies.

To recap -the whole thing works on all the drop-down menus in certain browsers and works on the first in the others. I was hoping that someone might have an idea what was wrong by looking at how the script(s) run or come across something similar before.

By "certain browsers" what do you mean? Which browsers are giving you the fits?

Also, what parts are working right and which are not to your satisfaction?
Vague questions tend to get vague responses.

Here is a different version I have changed so many times that I forget where it came from,
but you can probably find the original with a google search of: cross browser css menu
or some combination.

I have the CSS and JS imbedded in the code below, but I show how it would actually be in external files.
Most of the links have been removed for non-sense reasons, but you should be able to modify the HTML to your needs.

I did say in my original post that it worked in IE, Firefox, Opera but not in Chrome, Safari and described what was happening and provided a link so that the problem could be seen.

While I've been away I've spent quite a bit of time revisiting the problem and discovered that the problem was in the CSS and not the code. I set the divs to "float: left" and it now works in the other browsers it didn't.

Thanks very much the script, I'll take it onboard and have a good look at it.