function(data){ var j = 1; var string = "
"; string += "关闭
"; if(data!=0) { $.each(data, function(i,item){ j = i+1; jsonitem += ""+j+"、"+item.title+"
"; }); string += jsonitem; } else { string += '没有找到相关的信息!'; } string += "
"; $(obj).after(string); $('.key-float').mouseover( function (){ $(this).siblings().css({"z-index":0}) $(this).css({"z-index":1001}); } ) $(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12}); }); } function add_favorite(title) { $.getJSON('http://lianmeng.meipopr.com/api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){ if(data.status==1) { $("#favorite").html('收藏成功'); } else { alert('请登录'); } }); } $(function(){ //$('#Article .content img').LoadImage(true, 660, 660,'/statics/images/s_nopic.gif'); }) //-->