Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

dropdown menu problem

dolev9dolev9 Member Posts: 147

how can i make this dropdown menu to do not gone away when i select the dropdown part?
how can i make a link from each one of the drop down part?
i got an error when i move the mouse from the menu part to the dropdown part - how can i fix it?


thanks

dolev








var ids;
var isover = 0;





function delbut(button,bnum)
{
var i;
var newnod;

for(i=bnum;i>0;i--)
{
newnod = button.children(i);
button.removeChild(newnod);
}
}



function hdselected(button,name,max)
{

newnod = document.createElement("LI");
button.insertBefore(newnod);
newnod.innerText=name;
}










.Codes





Comments

  • mac_doggiemac_doggie Member Posts: 488
    :
    : how can i make this dropdown menu to do not gone away when i select the dropdown part?
    : how can i make a link from each one of the drop down part?
    : i got an error when i move the mouse from the menu part to the dropdown part - how can i fix it?
    :
    :
    : thanks
    :
    : dolev
    :
    :
    :
    :
    :
    :
    :
    :
    : var ids;
    : var isover = 0;
    :
    :
    :
    :
    :
    : function delbut(button,bnum)
    : {
    : var i;
    : var newnod;
    :
    : for(i=bnum;i>0;i--)
    : {
    : newnod = button.children(i);
    : button.removeChild(newnod);
    : }
    : }
    :
    :
    :
    : function hdselected(button,name,max)
    : {
    :
    : newnod = document.createElement("LI");
    : button.insertBefore(newnod);
    : newnod.innerText=name;
    : }
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : .Codes
    :
    :

    :
    :
    :
    :
    It's in the onmouseout. You should for one use:
    in stead of menu is not an existing HTML tag. Then you insert your menuoptions before your menu tag. If you'd place them inside I think you would be save.

    use button.appendChild(newnod) in stead of button.insertBefore(newnod);

    good luck.
    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


Sign In or Register to comment.