输入banner图图片脚本导航/分类

获取非最后一列td值并将title设为该值的方法_javascript技巧

代码如下:

$(function() {
$('table tr td:not(:last-child)').mouseover(function() {
val = $(this).text().trim();
$(this).attr({title:val});
})
});