You could dynamically add a psuedo attribute like "col" with an each
function after the page loads.
Other than than, I would experiment with colgroup and see if it fires which
col you are in.

Sorry, no time for a demo. :(  Hope this helps a little.

Glen


On Nov 26, 2007 7:35 AM, badtant <[EMAIL PROTECTED]> wrote:

>
> I have the following html:
>
> <table>
> <thead>
> <tr>
> <th>col a</th>
> <th>col b</th>
> <th>col c</th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td>aaa</td>
> <td>bbb</td>
> <td>ccc</td>
> </tr>
> </tbody>
> </table>
>
> When the user hovers the th-element I have a function. I want that
> function to return which of the columns that has been hovered. Let me
> explain... when hovering "col a" I want to get the value 1 and when
> hovering "col b" I want to get the value 2. Any suggestions on how can
> that be achieved?
>
> Thanks!
> /Niklas
>

Reply via email to