PDA

View Full Version : Any Javascript whizzes out there ?


Rob Holmes
6th December 2005, 13:24
Hi - we're just putting in a drop down menu system and have got stuck on the javascript.

The menus open ok but when we add the mouseout script we can't scroll down the menus because when the mouse goes down it detects it's out of the original area.

Anyone a whizz at javascript? - I'm sure it's something small we're missing!

The url is http://www.matrixxhosting.com/dd2.html

This is the mouseout code we've used (not in there atm)

<dd id="smenu1" onmouseover="javascript:montre('smenu1');" onmouseout="javascript:montre('');">

Cheers,

Rob

Stephen
6th December 2005, 15:02
I think it's something to do with the way your list is setup rather than anything specifically wrong with the javascript, as the menu only disappears when moving between items. (If you can get the mouse to the second/third items without the browser noticing, the list doesn't disappear.)

You do have a couple of missing </LI> tags on the first two list items, but putting them in hasn't helped yet!

Will keep playing...

Stephen
6th December 2005, 15:11
This any use to you?

http://tutorials.alsacreations.com/deroulant/

Rob Holmes
6th December 2005, 15:14
This any use to you?

http://tutorials.alsacreations.com/deroulant/

Hi Stephen - Thanks - hmm I have the same problem with their example here: http://tutorials.alsacreations.com/deroulant/menu-horizontal.htm

One of the menus always sticks open <frown>

Rob

Richard Conyard
6th December 2005, 15:24
http://www.htmldog.com/articles/suckerfish/dropdowns/

Not fixing your problem Rob - but you could do worse than use this tutorial and do it via CSS behaviours (a little JS is needed for IE that doesn't support them well).

Rob Holmes
6th December 2005, 15:34
Hi Richard,

Thanks - this maybe the next step :)

Rob

Stephen
6th December 2005, 16:03
Rob,
Does their other example work for you?

http://tutorials.alsacreations.com/deroulant/cssmenu4.htm

I notice that overlaps. I tried playing around with your borders (without any joy though), as it only seems to disappear on your page when going over a specific item's boundary. I think that's where you're problem is.

Cheers,
Steve

kyber
6th December 2005, 17:33
I tend to use Project 7 menus. They cost but I think that they are worth the money.

Here is a horizontal example:
http://www.projectseven.com/products/menusystems/pmm/demos/horizontal.htm

Stuart

Rob Holmes
6th December 2005, 18:36
Hi Steve - yes the second example works fine!

I suspect this too - when I get to the bottom of it I'll let you know!

In the meantime (to save time) we're going to look at Richards suggestion.

Pain though - I'm sure it's something simple :(

Rob

fastfences
6th December 2005, 19:36
Hi Rob,
PM JoyDivision. I think he's good on that stuff! :wink:

cheers, Nigel