- $("#showComp tr:not('.stlisttitle')").hover(function() {
- try {
- if ($("#calendarPanel").is(":visible")) $(".playerlist").hide();
- else {
- clearTimeout(timMess); $(".playerlist").CSS("top", $(this).offset().top - $(".calendarCon").offset().top - 30).show();
- }
- } catch(e) {}
- },
- function() { timMess = setTimeout(function() { $(".playerlist").hide();
- },
- 300); //$(this).css("background","");
- }); $(".playerlist").hover(function() { clearTimeout(timMess);
- },
- function() { timMess = setTimeout(function() {
$(".playerlist").hide();
},300); });
效果如图:来源: http://www.phperz.com/article/17/0625/278512.html