//living_showcase function fn_ui_living_showcase(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i"; } else{ str+= ""; } } $("#id_living_index_showcase").html(str); fn_ui_living_showcase_slide(); } //living_showcase_slide function fn_ui_living_showcase_slide(){ /*파라미터 "rolling_box", box 아이디 "div", 아이템 html 태그 이름 "left", 이동방향 300, 이동속도 5000, 다음 이동시간 -1, 처음 보여줄 값 -1은 랜덤 "oRoll", 생성한객체(인스턴스) 이름 "fnInitPage", 초기 실행 할 함수 "fnChangePage" 아이템 이동시 실행 할 함수 */ oRoll = new fnRollingImage("id_living_index_showcase", "li", "left", 250, 4000, -1, "oRoll", "fnInitPage", "fnChangePage"); oRoll.RunRollingImage(); } //시작시 버튼설정 function fnInitPage(totCnt, currIdx) { var sToggleImg = ""; var sPagingBtn = ""; for(var nIdx=0; nIdx"; //클릭으로 변경 jaeils 20101203 sPagingBtn += ""; } $("#pagination_1.btn").html(sPagingBtn); } //슬라이딩시 버튼설정 function fnChangePage(totCnt, oldIdx, currIdx) { $($("#pagination_1.btn > a").removeClass("on")); //현재 페이지버튼 비활성화 $($("#pagination_1.btn > a")[currIdx]).addClass("on"); //보일 페이지 버튼 활성화 } //living_living function fn_ui_living_living(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ str+= "
"; str+= "
\""+tjson.text[0].value+"\"
"; str+= "
\"리빙\"
"; str+= "
"+tjson.text[0].value+"
"; str+= "
"; } return str; } //living_childcare function fn_ui_living_childcare(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ str+= "
"; str+= "
\""+tjson.text[0].value+"\"
"; str+= "
\"육아\"
"; str+= "
"+tjson.text[0].value+"
"; str+= "
"; } return str; } //living_cook function fn_ui_living_cook(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ str+= "
"; str+= "
\""+tjson.text[0].value+"\"
"; str+= "
\"요리\"
"; str+= "
"+tjson.text[0].value+"
"; str+= "
"; } return str; } //living_newcarticle function fn_ui_living_newarticle(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ str+= "\""+tjson.text[0].value+"\" "+tjson.text[0].value+""; } return str; } //living_pickupitem function fn_ui_living_pickupitem(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\" "; str+= ""+tjson.text[i].value+""; str+= ""; } } return str; } //living_goodrestaurant function fn_ui_living_goodrestaurant(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\" "; str+= ""+tjson.text[i].value+""; str+= ""; } } return str; } //living_childcareknowhow function fn_ui_living_childcareknowhow(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\""; str+= "
  • "+strTitle+" "+strContent+"
  • "; } else{ str+= "
  • "+strTitle+" "+tjson.text[i + 1].value+"
  • "; } } } return str; } //living_food function fn_ui_living_food(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\""; str+= "
  • "+strTitle+" "+strContent+"
  • "; } else{ str+= "
  • "+strTitle+" "+tjson.text[i + 1].value+"
  • "; } } } return str; } // living_contentsby function fn_ui_living_contentsby(tjson){ $("#id_living_index_contentsby").html(""); var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\" "; } } $("#id_living_index_contentsby span").html(str); fnRollingContentsBy("id_living_index_contentsby"); } //living_homedeco_showcase function fn_ui_living_homedeco_showcase(tjson){ var str = "", str2=""; if(typeof(tjson)!="undefined"){ for (i=0;i"; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+tjson.text[i].value+" "+tjson.content[i].value+""; str+= ""; if(i==0){ str2 = str2 + "
  • "; } else{ str2 = str2 + "
  • "; } str2 = str2 + ""; str2 = str2 + "\""+tjson.text[i].value+"\" "+tjson.content[i].value+""; str2 = str2 + "
  • "; } } $("#id_living_homedeco_index_showcase").html(str); $("#id_living_homedeco_index_showcase2").html(str2); fn_ui_living_homedeco_showcase_slide(); } //living_homedeco_showcase_slide function fn_ui_living_homedeco_showcase_slide(){ /*파라미터 "rolling_box", box 아이디 "div", 아이템 html 태그 이름 "left", 이동방향 300, 이동속도 5000, 다음 이동시간 -1, 처음 보여줄 값 -1은 랜덤 "oRoll", 생성한객체(인스턴스) 이름 "fnInitPage", 초기 실행 할 함수 "fnChangePage" 아이템 이동시 실행 할 함수 */ oRoll = new fnRollingImage("id_living_homedeco_index_showcase", "li", "left", 250, 4000, -1, "oRoll", "fn_ui_living_homedeco_showcase_InitPage", "fn_ui_living_homedeco_showcase_ChangePage"); oRoll.RunRollingImage(); } //시작시 우측설정 function fn_ui_living_homedeco_showcase_InitPage(totCnt, currIdx) { var sToggleImg = ""; var sPagingBtn = ""; for(var nIdx=0; nIdx" } $("#pagination_1").html(sPagingBtn); } //슬라이딩시 버튼설정 function fn_ui_living_homedeco_showcase_ChangePage(totCnt, oldIdx, currIdx) { $($("#pagination_1.btn > a").removeClass("on")); //현재 페이지버튼 비활성화 $($("#pagination_1.btn > a")[currIdx]).addClass("on"); //보일 페이지 버튼 활성화 } //living_homedeco_trend function fn_ui_living_homedeco_trend(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\""; str+= "
  • "+strTitle+" "+strContent+"
  • "; } else{ str+= "
  • "+strTitle+" "+tjson.text[i + 1].value+"
  • "; } } } return str; } //living_homedeco_convertknowhow function fn_ui_living_homedeco_convertknowhow(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\""; str+= "
  • "+strTitle+" "+strContent+"
  • "; } else{ str+= "
  • "+strTitle+" "+tjson.text[i + 1].value+"
  • "; } } } return str; } //living_homedeco_spacedramaturgy function fn_ui_living_homedeco_spacedramaturgy(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\" " str+= ""+tjson.text[i].value+" "+tjson.content[i].value+""; } } return str; } //living_food_showcase function fn_ui_living_food_showcase(tjson){ var str = "", str2=""; if(typeof(tjson)!="undefined"){ for (i=0;i"; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+tjson.text[i].value+" "+tjson.content[i].value+""; str+= ""; if(i==0){ str2 = str2 + "
  • "; } else{ str2 = str2 + "
  • "; } str2 = str2 + ""; str2 = str2 + "\""+tjson.text[i].value+"\" "+tjson.content[i].value+""; str2 = str2 + "
  • "; } } $("#id_living_food_index_showcase").html(str); $("#id_living_food_index_showcase2").html(str2); fn_ui_living_food_showcase_slide(); } //living_food_showcase_slide function fn_ui_living_food_showcase_slide(){ /*파라미터 "rolling_box", box 아이디 "div", 아이템 html 태그 이름 "left", 이동방향 300, 이동속도 5000, 다음 이동시간 -1, 처음 보여줄 값 -1은 랜덤 "oRoll", 생성한객체(인스턴스) 이름 "fnInitPage", 초기 실행 할 함수 "fnChangePage" 아이템 이동시 실행 할 함수 */ oRoll = new fnRollingImage("id_living_food_index_showcase", "li", "left", 250, 4000, -1, "oRoll", "fn_ui_living_food_showcase_InitPage", "fn_ui_living_food_showcase_ChangePage"); oRoll.RunRollingImage(); } //시작시 우측설정 function fn_ui_living_food_showcase_InitPage(totCnt, currIdx) { var sToggleImg = ""; var sPagingBtn = ""; for(var nIdx=0; nIdx" } $("#pagination_1").html(sPagingBtn); } //슬라이딩시 버튼설정 function fn_ui_living_food_showcase_ChangePage(totCnt, oldIdx, currIdx) { $($("#pagination_1.btn > a").removeClass("on")); //현재 페이지버튼 비활성화 $($("#pagination_1.btn > a")[currIdx]).addClass("on"); //보일 페이지 버튼 활성화 } //living_pickupitem_showcase function fn_ui_living_pickupitem_showcase(tjson){ var str = "", str2=""; if(typeof(tjson)!="undefined"){ for (i=0;i"; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+tjson.text[i].value+" "+tjson.content[i].value+""; str+= ""; if(i==0){ str2 = str2 + "
  • "; } else{ str2 = str2 + "
  • "; } str2 = str2 + ""; str2 = str2 + "\""+tjson.text[i].value+"\" "+tjson.content[i].value+""; str2 = str2 + "
  • "; } } $("#id_living_pickupitem_index_showcase").html(str); $("#id_living_pickupitem_index_showcase2").html(str2); fn_ui_living_pickupitem_showcase_slide(); } //living_pickupitem_showcase_slide function fn_ui_living_pickupitem_showcase_slide(){ /*파라미터 "rolling_box", box 아이디 "div", 아이템 html 태그 이름 "left", 이동방향 300, 이동속도 5000, 다음 이동시간 -1, 처음 보여줄 값 -1은 랜덤 "oRoll", 생성한객체(인스턴스) 이름 "fnInitPage", 초기 실행 할 함수 "fnChangePage" 아이템 이동시 실행 할 함수 */ oRoll = new fnRollingImage("id_living_pickupitem_index_showcase", "li", "left", 250, 4000, -1, "oRoll", "fn_ui_living_pickupitem_showcase_InitPage", "fn_ui_living_pickupitem_showcase_ChangePage"); oRoll.RunRollingImage(); } //시작시 우측설정 function fn_ui_living_pickupitem_showcase_InitPage(totCnt, currIdx) { var sToggleImg = ""; var sPagingBtn = ""; for(var nIdx=0; nIdx" } $("#pagination_1").html(sPagingBtn); } //슬라이딩시 버튼설정 function fn_ui_living_pickupitem_showcase_ChangePage(totCnt, oldIdx, currIdx) { $($("#pagination_1.btn > a").removeClass("on")); //현재 페이지버튼 비활성화 $($("#pagination_1.btn > a")[currIdx]).addClass("on"); //보일 페이지 버튼 활성화 } //living_pickupitem_shop function fn_ui_living_pickupitem_shop(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ str+= "
      "; } } str+= "
    "; } return str; } //living_pickupitem_livinggoods function fn_ui_living_pickupitem_livinggoods(tjson){ var str = ""; if(typeof(tjson)!="undefined"){ for (i=0;i\""+tjson.text[i].value+"\" " str+= ""+tjson.text[i].value+" "+tjson.content[i].value+""; } } return str; } //living_housekeeping_showcase function fn_ui_living_housekeeping_showcase(tjson){ var str = "", strTitle = "", strContent = "", strTitleS = "", strContentS = ""; if(typeof(tjson)!="undefined"){ for (i=0;i 17){ strTitle = strTitle.substring(0, 17) + ".."; } if(strContent.length > 50){ strContent = strContent.substring(0, 50) + ".."; } if(strTitleS.length > 10){ strTitleS = strTitleS.substring(0, 10) + ".."; } if(strContentS.length > 20){ strContentS = strContentS.substring(0, 20) + ".."; } if(i == 0){ str+= "
  • "; str+= ""; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+strTitle+""+strTitleS+" "; str+= "
    "+strContent+""+strContentS+"
    "; } else{ str+= "
  • "; str+= ""; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+strTitle+""+strTitleS+" "; str+= "
    "+strContent+""+strContentS+"
    "; } } } return str; } //living_housekeeping_showcase_change function fn_ui_living_housekeeping_showcase_change(cNum, tNum){ for(i = 0; i < tNum; i ++){ if(i == cNum){ $("#id_living_housekeeping_index_showcase_li" + i).addClass("headline"); $("#id_living_housekeeping_index_showcase_back" + i).addClass("background"); $("#id_living_housekeeping_index_showcase_title" + i).removeClass("list_cr"); $("#id_living_housekeeping_index_showcase_titleL" + i).css("display", "block"); $("#id_living_housekeeping_index_showcase_titleS" + i).css("display", "none"); $("#id_living_housekeeping_index_showcase_contentL" + i).css("display", "block"); $("#id_living_housekeeping_index_showcase_contentS" + i).css("display", "none"); } else{ $("#id_living_housekeeping_index_showcase_li" + i).removeClass("headline"); $("#id_living_housekeeping_index_showcase_back" + i).removeClass("background"); $("#id_living_housekeeping_index_showcase_title" + i).addClass("list_cr"); $("#id_living_housekeeping_index_showcase_titleL" + i).css("display", "none"); $("#id_living_housekeeping_index_showcase_titleS" + i).css("display", "block"); $("#id_living_housekeeping_index_showcase_contentL" + i).css("display", "none"); $("#id_living_housekeeping_index_showcase_contentS" + i).css("display", "block"); } } } //living_infantcare_showcase function fn_ui_living_infantcare_showcase(tjson){ var str = "", strTitle = "", strContent = "", strTitleS = "", strContentS = ""; if(typeof(tjson)!="undefined"){ for (i=0;i 17){ strTitle = strTitle.substring(0, 17) + ".."; } if(strContent.length > 50){ strContent = strContent.substring(0, 50) + ".."; } if(strTitleS.length > 10){ strTitleS = strTitleS.substring(0, 10) + ".."; } if(strContentS.length > 20){ strContentS = strContentS.substring(0, 20) + ".."; } if(i == 0){ str+= "
  • "; str+= ""; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+strTitle+""+strTitleS+" "; str+= "
    "+strContent+""+strContentS+"
    "; }else{ str+= "
  • "; str+= ""; str+= " "; str+= "\""+tjson.text[i].value+"\" "; str+= ""+strTitle+""+strTitleS+" "; str+= "
    "+strContent+""+strContentS+"
    "; } } } return str; } //living_infantcare_showcase_change function fn_ui_living_infantcare_showcase_change(cNum, tNum){ for(i = 0; i < tNum; i ++){ if(i == cNum){ $("#id_living_infantcare_index_showcase_li" + i).addClass("headline"); $("#id_living_infantcare_index_showcase_back" + i).addClass("background"); $("#id_living_infantcare_index_showcase_title" + i).removeClass("list_cr"); $("#id_living_infantcare_index_showcase_titleL" + i).css("display", "block"); $("#id_living_infantcare_index_showcase_titleS" + i).css("display", "none"); $("#id_living_infantcare_index_showcase_contentL" + i).css("display", "block"); $("#id_living_infantcare_index_showcase_contentS" + i).css("display", "none"); } else{ $("#id_living_infantcare_index_showcase_li" + i).removeClass("headline"); $("#id_living_infantcare_index_showcase_back" + i).removeClass("background"); $("#id_living_infantcare_index_showcase_title" + i).addClass("list_cr"); $("#id_living_infantcare_index_showcase_titleL" + i).css("display", "none"); $("#id_living_infantcare_index_showcase_titleS" + i).css("display", "block"); $("#id_living_infantcare_index_showcase_contentL" + i).css("display", "none"); $("#id_living_infantcare_index_showcase_contentS" + i).css("display", "block"); } } } function fn_ui_auto_common_li2(tjson,max){ var base_url = "http://pds.joinsmsn.com"; var str = ""; var link,item,title,i; count = 6; for (i=0;i"+title+" "+$(""+getSourceCodeName(item.sc)+"").text()+"
  • "; } return str; } function fn_ui_auto_image_list(tjson){ var base_url = "http://pds.joinsmsn.com"; var str = ""; var link,item,title,i; for (i=0;i"; str = str + "
    "; // if(i!=2){ // str = str + "
    "; // } str = str + "
    "+title+"
    "; // if(i==2){ str = str + "
    "+ fnSetLength(item.summary,250,"…")+"
    "; // }else{ // str = str + "
    "+ fnSetLength(item.summary,170,"…")+"
    "; // } str = str + "
    "+$(""+getSourceCodeName(item.sc)+"").text()+"
    "; str = str + "
    "; str = str + ""; } return str; } // 스타일 , 맨 , 리빙 , 러브 right 공통 함수 start //뉴스레터 해지공지 감추기 function fn_hidden_notice(){ $("#cancelletter_notice").hide(); } //뉴스레터 신청공지 감추기 function fn_hidden_renotice(){ $("#registerletter_notice").hide(); } // 이메일 빈값 만들기 function checkWT(){ var theForm = document.frm_nonmember; theForm.email.value = ""; } //비회원 레터신청 function fn_register_nonmember_lettering(){ var theForm=document.frm_nonmember; theForm.useflag.value = "Y"; var email = theForm.email.value; if (email.value == "" ){ alert("이메일 주소를 입력해주세요"); theForm.email.focus(); return; }else if(email.indexOf("@")<=-1 || email.indexOf(".")<=-1 ){ alert("정상적인 이메일 형식이 아닙니다"); checkWT(); theForm.email.focus(); return; } theForm.target = "iFrm"; theForm.action="http://style.joinsmsn.com/newsletter/nonmember_letter_save.asp" theForm.submit(); } //비회원 레터신청 취소 function fn_cancel_nonmember_lettering(){ var theForm=document.frm_nonmember; theForm.useflag.value = "N"; var email = theForm.email.value; if (email.value == "" ){ alert("이메일 주소를 입력해주세요"); theForm.email.focus(); return; }else if(email.indexOf("@")<=-1 || email.indexOf(".")<=-1 ){ alert("정상적인 이메일 형식이 아닙니다"); checkWT(); theForm.email.focus(); return; } theForm.target = "iFrm"; theForm.action="http://style.joinsmsn.com/newsletter/nonmember_letter_save.asp" theForm.submit(); } // 레터 미리보기 함수 function review_letter(){ window.open("http://my.joinsmsn.com/newsletter/review_letter.asp","_blank","width=750,height=850,toolbar=no,status=no,scrollbars=yes"); } // 스타일 , 맨 , 리빙 , 러브 right 공통 함수 end