//新闻点击 $(".content").on("click", ".small", function () { $.getJSON("//ad.kuaizip.com/advertise/userclick", { time: new Date().getTime(), localUrl: $.base64.encode("kZip.com" + location.pathname), project: $.base64.encode("tpop" + "_" + conf.proType), type: $.base64.encode("hoteastday"), position: $.base64.encode($(this).data("news")), act: $.base64.encode("click") }).done(function (data) { }); }); /** * 图片经过放大 */ $(".content").on("mouseenter", ".list", function () { if (!$(this).hasClass("baiduP")) { $(this).css("background", "#e6e6e6") } var _img = $(this).find("img") $(this).find("a").css("color", "#406599") _img.stop().css({ width: "100%", height: "100%", left: "0px", top: "0px", position: "absolute" }); var wValue = 1.1 * _img.width(); var hValue = 1.1 * _img.height(); _img.animate({ width: wValue, height: hValue, left: ("-" + (0.1 * _img.width()) / 2), top: ("-" + (0.1 * _img.height()) / 2) }, 500); }).on("mouseleave", ".list", function () { $(this).css("background", "#fff") var _img = $(this).find("img") $(this).find("a").css("color", "#333") _img.stop().animate({ width: "100%", height: "100%", left: "0px", top: "0px" }, 500); }); $(".content").on("mouseenter",".list",function(){ $(this).find(".tips").removeClass("hide"); }).on("mouseleave",".list",function(){ $(this).find(".tips").addClass("hide"); }); //sh_click $(".content").on("click", ".shClick a", function () { if($(this).data("isclickbackurl") == 1){ var img3 = new Image(); img3.src=$(this).data("clickbackurls") } $.getJSON("//ad.kuaizip.com/advertise/userclick", { time:new Date().getTime(), localUrl:$.base64.encode("kZip.com"+location.pathname), project:$.base64.encode("tpop"+"_"+conf.proType), position:$.base64.encode("songheng_click"), qid:$.base64.encode(getQuery("qid")), env:$.base64.encode(getQuery("env")), uid:$.base64.encode(getQuery("uid")) }).done(function (data) { }); }); //sh_click $(".content").on("click", ".ssp_m a", function () { window.uploadConfig = { act: 'click', ad_id: $(this).data("baidu_id"), ad_pos: conf.ad_pos, ad_type: 'zhike', strategy_id: $(this).data("strategy_id"), idea_id: $(this).data("idea_id"), plan_id: $(this).data("plan_id"), product_category: $(this).data("product_category"), }; uploadZhike(uploadConfig); });