Hi
I'v got the following javascript (part of it) that works with the event
onmouseup:
// Attach event handlers to all images within container
LICollection=document.getElementById("MDME").getEl ementsByTagName("LI");
if (LICollection!=null)
{ for (l=0; l<LICollection.length; l++)
{LICollection.item(l).onmouseup=onMouseUpHandler;}
}
Now I modified it so it works with onkeydown:
// Attach event handlers to all images within container
LICollection=document.getElementById("MDME").getEl ementsByTagName("LI");
if (LICollection!=null)
{ for (l=0; l<LICollection.length; l++)
{LICollection.item(l).onmouseup=onMouseUpHandler;
LICollection.item(l).onkeydown=onMouseUpHandler;}
}
This works fine, but actually I want only that it works whit ENTER
pressed. When I try this:
// Attach event handlers to all images within container
LICollection=document.getElementById("MDME").getEl ementsByTagName("LI");
if (LICollection!=null)
{ for (l=0; l<LICollection.length; l++)
{LICollection.item(l).onmouseup=onMouseUpHandler;
LICollection.item(l).onkeydown(Key.ENTER)=onMouseU pHandler;}
}
nothing happens anymore?
Any clue for me?
Thanks ajavascript newbee.
Markus