开发者

Pop-up on hovering over a table cell <-- Is this possible in JavaScript? If so, How?

开发者 https://www.devze.com 2023-03-29 08:55 出处:网络
I\'ve displayed a table of used-items for sale. I\'d like to let used just hover-over an item\'s table-cell,

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 forma开发者_Python百科t) how to get those?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消