$(function(){ $.fn.center_top1= function () { var url = "/main/top1"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { $("#center_top1").append(result); $('.top1-thumb').nailthumb({width:442,height:204,fitDirection:'center center',method:'crop'}); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_top2= function () { var url = "/main/top2"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#center_top1").after(result); $('.dw_neotad_thumb').nailthumb({width:198,height:120,fitDirection:'center center'}); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_top3= function () { var url = "/main/top3"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#bizfeedtit").after(result); $('.bizfeedsum').nailthumb({width:432,height:242,fitDirection:'center center'}); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_right1= function () { var url = "/main/right1"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#rik_ul").html(result); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_right2= function () { var url = "/main/right2"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#hottopic_ul").html(result); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_right3= function () { var url = "/main/right3"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#shop_ul").html(result); }, error:function(xhr, textStatus, error) { alert(error); } }); } $.fn.center_right4= function () { var url = "/main/right4"; $.ajax({ url:url, //type:"POST", //data: data_string, //dataType:"json" //cache:false, //global:false, beforeSend: function(xhr, settings) { }, complete:function(xhr, textStatus) { }, success:function(result, textStatus, xhr) { //console.log(result); //$("#cont_center").append(result); $("#askshow").append(result); }, error:function(xhr, textStatus, error) { alert(error); } }); } }); function get_cookie ( cookie_name ) { var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' ); if ( results ) return ( unescape ( results[2] ) ); else return null; } function get_cookie_px( cookie_name ) { var name = cookie_name + "="; var ca = document.cookie.split(';'); for(var i=0; i