atreis
March 17th, 2003, 08:30 AM
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>
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>