Hello, friends.

I´m in trouble with a simple code, but i don´t know how to solve this question.

I have a home page, with one tag with the same id and I need to know the index of an id when the mouse passes over the tag..

The property sourceIndex does not work on this case, as i just have tested.

How can I get the index of some specific id in that collection ????

See below my sample html code:

<HTML>

<HEAD>

<SCRIPT for=linkMenu event=onmouseover>

if window.LinkMenu.sourceIndex = 1 {
window.alert('1');
{
else {
window.alert('2');
}

</SCRIPT>

<BODY>

<A id=LinkMenu href="main.htm">Test 1</A>
<A id=LinkMenu href="old_main.htm">Test 2</A>

</BODY>

</HEAD>

</HTML>