Click to See Complete Forum and Search --> : menu help


xataku_nakusute
07-09-2003, 11:02 PM
im back

now i need sum major help:

ok, heres the "lowdown"...
i gots this dhtml dropdown menu k? and its one-level..
now i have it so the menus appear onmouseover and they go away upon onmouseout.......howeva..
im looking to make the menu appear onclick and also disappear onclick......any ideas anyone??

if you couldnt answer that first part....ive decided that becuz im sooo desperate, i would allow it if you could help me to make this menu appear onmousedown, disappear on mouseup, but also SET OFF MENU ITEMS UPON ONMOUSEUP....if ya gots even tha slightest idea....go ahead and reply
thanx again

XaTaKu_NaKuSuTe

brendandonhue
07-09-2003, 11:18 PM
Can't help with your code unless you post it.

freefall
07-09-2003, 11:32 PM
onclick="((open=='no')?(appear(); open='yes';):(disappear(); open='no'))";

replace appear() with the code that opens the menu, and disappear() with the code that closes the menu.

in theory that should work for your basic needs, just inside the script, at the very top after the <script> tag, put
var open = 'no';
that's just an if statement, checks to see if its open or not, if it doesnt work thats because i'm tired
- ian

xataku_nakusute
07-09-2003, 11:41 PM
in response to your replies: my gratitude to the both of you

::: XaTaKu_NaKuSuTe :::


http://www.xataku.tk/

freefall
07-09-2003, 11:53 PM
xataku, I checked out your website, the intro is great! Good luck getting everything completed on it, looks like you've got a lot of work ahead of you!
- Ian