function show(txt) {
$('#suzhou').mousemove(function(e) {
var ev = e || window.event;
var x = ev.clientX;
var y = ev.clientY;
if(txt==""||txt==undefined||txt==null){
$("#Tips").css("border-top-color","#D2691E");
$("#txts").html("<span>未找到该地区企业数据<span>");
}else{
$("#txts").html(txt);
}
$("#Tips").css({
"left" : x + 10 + "px",
"top" : y + 10 + "px"
});
$("#Tips").show();
});
}
function hide() {
$("#Tips").hide();
}
转载于:https://my.oschina.net/oospace/blog/356566