I posted a recent message regarding navigating a table using arrow
keys. I've got the code for the navigation working.
My table contains rows of links (anchors). I can get to a specific link
using the code for capturing a key. However, once I get to the link, I
can focus(), for example... but what I really want is to activate the
"hover" styles.
I can fake the hover effect using javascript, but how do I do this and
still allow the user to use the mouse to navigate the table???? I'm
getting more and more confused. I'm wondering if it's even worth it...
Here is a function where I loop through the table to get to the anchors
in the first column. Once I get the anchor, is there a way to activate
the hover effect???
function getRows()
{
var table = document.getElementById('myTable');
for ( var i = 0; i<table.rows.length ; i++ ) {
var myAnchor = table.rows[i].getElementsByTagName("a");
if ( myAnchor.length )
{
myAnchor[0].focus();
return;
}
}
}
Any help would be most appreciated... Thanks. D