开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜