admin管理员组

文章数量:1435090

I've displayed a table of used-items for sale.

I'd like to let used just hover-over an item's table-cell, to display item's price, eg, in a pop-up text-box.

Is this possible in JavaScript?

If I'd need the (row, col) (eg, in another location format) how to get those?

I've displayed a table of used-items for sale.

I'd like to let used just hover-over an item's table-cell, to display item's price, eg, in a pop-up text-box.

Is this possible in JavaScript?

If I'd need the (row, col) (eg, in another location format) how to get those?

Share Improve this question edited Jul 17, 2017 at 9:39 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Aug 21, 2011 at 9:29 IVIIVI 711 silver badge4 bronze badges 1
  • can we some code that you have written – Baz1nga Commented Aug 21, 2011 at 9:34
Add a ment  | 

1 Answer 1

Reset to default 14

You don't need Javascript for this: you could use a title attribute for each item.

<td title="Title">Item<!-- Will display a tooltip with "Title" on hover --></td>

jsFiddle demo

本文标签: