日期:2014-05-16 浏览次数:20415 次
var tip = null;
$("ul li a[rel=tooltip]").mouseover(function () {
var offset = $(this).offset();
tip = $("<div></div>").attr("class", "rel");
if ($(this).next("div").hasClass("rel")) {
$(this).next("div.rel").show();
} else {
tip.addClass("tip").css({ "top": (offset.top + 20), "left": (offset.left + 10) });
var proName = $(this).children("span[name=proName]").text(); //流程名
var incident = $(this).children("span[name=incident]").text(); //实例号
$.ajax({
type: "get",
url: "Ajax/GetProjectDetail.aspx",
cache: false,
data: { proName: encodeURIComponent(proName), incident: incident },
success: function (msg) {
if (msg.toString() == "") {
tip.html("未查询到相关数据!");
} else {
tip.html(msg);
}