473,320 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Executing a mouseover associated with another element

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

Jul 21 '06 #1
2 1524
Vinayak wrote:
<snip>
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.

Jul 21 '06 #2
Thanks a ton.

Looking at the answer, i feel sheepish to have been trying a more
convoluted route.
Richard Cornford wrote:
Vinayak wrote:
<snip>
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.
Jul 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Michael Hill | last post by:
I have this cf script below where the javascript in it works perfectly i.e. a new window opens when I press 'click me' when I call it up using the url in the browser. But when I "POST" to it...
2
by: Alex | last post by:
On my page I have a lot string like this: <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc1</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc2</span> <span...
4
by: Dietmar Kuehl | last post by:
Hi, after reading the documentation on C# generics from several sources, I'm still unclear whether it is possible to infer associated types from a type argument. For example, if I have an...
1
by: Luis Esteban Valencia | last post by:
Is it possible to implement mouseover on a particular word in a datagrid (not mouseover on the entire cell)? For instance, assuming tha I have a 'Definitions' MSSQL table as such: Definitions...
3
by: BKDotCom | last post by:
This has surely been answered somewhere multiple times, but... I'm guessing it's some sort of "bubbling" thing.... <STYLE> ..triggerarea { border:#00C solid 1px; } </STYLE> <UL ID="menu">
5
by: JB | last post by:
I am struggling to figure out a way to allow one element to be dragged, but still capture 'mouseover' events on other elements. I've created a simple example to demonstrate what I mean:...
3
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
3
by: apurvaG | last post by:
Hi All, I am applying some xslt template on a XML file to generate the HTML. This HTML has several <DIV> tags with mouseover and mouseout event associated to them. So if i do mouseover on a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.