Executing a mouseover associated with another element

V

Vinayak

Hi


I have an application which needs to run on a kiosk type environment.
There is mouse as well as basic keypad support.The browser is Opera 7.

My issue is

I have a menu of n number of elements .

< a id = "link1" onclick="function1" onmouseover("function2")
onmouseout("function3")>
image
</a>
and so on.

I am trapping the keyboard input using onkeydown . When the user
presses enter I want to execute the onclick associated with that event
or when he tabs I want to execute the onmouseout of the current item
and onmouseover of the next item.

I was trying to do

eval(document.getElementById(columns[currCol][currRow]).getAttribute("onMouseOver"))

This works on Opera 8.5 but fails in Opera 7. Are there any
alternatives?

Warm Regards
Vinayak
 
R

Richard Cornford

Vinayak wrote:
I am trapping the keyboard input using onkeydown . When the user
presses enter I want to execute the onclick associated with that event
or when he tabs I want to execute the onmouseout of the current item
and onmouseover of the next item.

I was trying to do

eval(document.getElementById(columns[currCol][currRow]).getAttribute("onMouseOver"))

This works on Opera 8.5 but fails in Opera 7. Are there any
alternatives?

document.getElementById(columns[currCol][currRow]).onmouseover();

Richard.
 
V

Vinayak

Thanks a ton.

Looking at the answer, i feel sheepish to have been trying a more
convoluted route.
Richard said:
Vinayak wrote:
I am trapping the keyboard input using onkeydown . When the user
presses enter I want to execute the onclick associated with that event
or when he tabs I want to execute the onmouseout of the current item
and onmouseover of the next item.

I was trying to do

eval(document.getElementById(columns[currCol][currRow]).getAttribute("onMouseOver"))

This works on Opera 8.5 but fails in Opera 7. Are there any
alternatives?

document.getElementById(columns[currCol][currRow]).onmouseover();

Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top