Please see this and correponding links:
http://p2p.wrox.com/javascript/faq.asp#no35
/Robert
-----Original Message-----
From: suhailkaleem [mailto:suhailkaleem@p...]
Sent: den 9 februari 2003 14:08
To: JavaScript HowTo
Subject: [javascript_howto] Detecting keyboard ?
hi !
Can any one tell me how can i detect which key was pressed by user -
how can i detect keys on runtime like if the user press a then i
should know user pressed a on thier key board. Thanks
----- Original Message -----
From: "Trent" <puzzlepants@m...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Friday, February 07, 2003 8:22 PM
Subject: [javascript_howto] RE: Highlighting a table cell with a
universal function
> Yes I have tried using CSS, but I have to put the function in each of
> the table cells, and with the table I am using, that takes a lot of
> code. I would like something like this:
>
> <table border=3D"0" width=3D"100"
onmouseover=3D"javascript:highlightcell()"
> onmouseout=3D"javascript:highlightcell()"
> <tr>
> <td>stuff</td>
> <td>stuff</td>
> <td>stuff</td>
> <td>stuff</td>
> <td>stuff</td>
> </tr>
> </table>
>
> The result I want from this is if a user puts their mouse over one
> cell, that cell will highlight, but I don't want to use a different
> mouseover function for each td cell.
>
> -------Original Message-------
>
> From: JavaScript HowTo
> Date: Friday, February 07, 2003 10:12:25 AM
> To: JavaScript HowTo
> Subject: [javascript_howto] RE: Highlighting a table cell with a
> universal function
>
> Have you tried using css?
>
> -----Original Message-----
> From: Trent Blackburn [mailto:puzzlepants@m...]
> Sent: Friday, February 07, 2003 2:56 PM
> To: JavaScript HowTo
> Subject: [javascript_howto] Highlighting a table cell with a universal
> function
>
>
> Hi All,
>
> I would like to know how to highlight any table cell that the user
> hovers their mouse over with a single function that does not have to
> be added in the individual cells or rows.
>
> For instance, I would like something this:
>
> <table border=3D"0" width=3D"100"
> onmouseover=3D"javascript:highlightcell()">
>
> The result is that this should highlight only one cell in the table,
> no matter which cell the user puts their mouse over.
>
> I don't know if this is possible, but maybe it can be done by
> determining which cell the user has their mouse over, and then
> highlighting that cell.
>
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to
> unsubscribe send a blank email to
>