//movie_right_boxoffice function fn_movie_right_boxoffice(){ var intIndex = 0; var intIndex = 0; var Rdate = new Date(); var RtodayMonth = (Rdate.getMonth() + 1) > 9 ? (Rdate.getMonth() + 1) : "0" + (Rdate.getMonth() + 1); var RtodayDay = Rdate.getDate() > 9 ? Rdate.getDate() : "0" + Rdate.getDate(); var day=Rdate.getDay() $.getScript("http://static.joinsmsn.com/portal/data/enter/auto/movie_boxoffice.js", function(){ var str = ""; if(typeof(movie_boxoffice) == "object"){ for (i=0;i 16) { str_title = str_title.substring(0,16) + ".."; } if(movie_boxoffice.MovieBORank[i].value < 11){ if(movie_boxoffice.MovieBORank[i].value == "5"){ str = str + "
  • " + str_title + " " + movie_boxoffice.MovieBORate[i].value + "%
  • "; } else{ str = str + "
  • " + str_title + " " + movie_boxoffice.MovieBORate[i].value + "%
  • "; } } } } switch (day) { case 1: day="(월)"; break; case 2: day="(화)"; break; case 3: day="(수)"; break; case 4: day="(목)"; break; case 5: day="(금)"; break; case 6: day="(토)"; break; case 0: day="(일)"; break; } str = str+"
    *"+Rdate.getFullYear()+"년 "+RtodayMonth+"월 "+RtodayDay+"일"+day+" 티켓링크를 기준으로 합니다.
    "; $("#right_id_tvTabList2").html(str); }); } function fn_display_right(vt){ ctg = "00"; var fSn1 ="25" ; var fSn2 ="26" ; document.write('
    '); fn_right_top_ad(fSn1) fn_right_shoppingbox("portal"); // 쇼핑박스 /* document.write(''); document.write('
    '); document.write('
    '); document.write('

    박스오피스

    '); document.write('
    '); document.write('
    '); document.write('
      '); document.write('
      '); document.write('
      '); document.write(' '); document.write('
      '); */ fn_right_sonagi(ctg,vt); fn_right_hot_photo(vt,ctg) ; fn_right_fresh_gallery(vt,ctg) ; if(location.href.indexOf("article.asp")>(-1)) {fn_right_portal_sponsor_link();} fn_right_imc_banner(); if(location.href.indexOf("article.asp")>(-1)) {fn_right_top_ad(fSn2, true);} document.write('
      '); fn_movie_right_boxoffice(); } //tab 처리 $(function(){ $("#tvmovie_tab h3").hover(function() { var obj = $(this) obj.addClass('on'); obj.siblings().removeClass('on'); obj.next().addClass("on"); }); }); function fn_right_portal_sponsor_link(){ document.write(''); document.write(""); document.write(''); } //tv_right_hotissue function fn_tv_right_hotissue(){ $.getScript("http://static.joinsmsn.com/portal/data/tv/stat/tv_index_hotissue.js", function(){ /*@index_hotissue(start)@*/ /*@index_hotissue(end)@*/ var str = ""; if(typeof(tv_index_hotissue)!="undefined"){ for (i=0;i"; str = str+ ""; str = str+ ""+tv_index_hotissue.text[i].value+""; str = str+ "" } } $("#aa").html(str); }); } function fn_tv_right_best(){ $.getScript("http://static.joinsmsn.com/portal/data/tv/stat/tv_index_best.js", function(){ /*@index_best(start)@*/ /*@index_best(end)@*/ var str = ""; if(typeof(tv_index_best)!="undefined"){ for (i=0;i"; str = str+ ""; str = str+ tv_index_best.text[i].value+"" } } $("#best").html(str); }); } // imc 배너 function fn_right_imc_banner(){ document.write(''); document.write(''); document.write(''); $.getScript("http://static.joinsmsn.com/portal/data/right/stat/imc_edit_banner_sub.js",function() { /*@edit_banner_sub(start)@*/ /*@edit_banner_sub(end)@*/ var tjson; if(typeof(imc_edit_banner_sub ) == "undefined") return; else tjson = imc_edit_banner_sub; var imc_banner_cnt = tjson.image.length; var imcrdn = parseInt(Math.random()*100)%imc_banner_cnt; var i = imcrdn; var str = ''; $("#banner").html(str); }); } // 크리테오용 스크립트 s function CriteoSetCookie(name,value){ var argv = CriteoSetCookie.arguments; var argc = CriteoSetCookie.arguments.length; var expires = (2 < argc) ? argv[2]:null; var path = (3 < argc) ? argv[3]:null; var domain = (4 < argc) ? argv[4]:null; var secure = (5 < argc) ? argv[5]:null; var expire_date = new Date(); expire_date.setDate(expire_date.getDate()+expires); document.cookie = name + "=" + escape (value) + ((expire_date == null) ? "" : ("; expires=" + expire_date.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "": ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function CriteoGetCookie(strName) { var strArg = new String(strName + "="); var nArgLen, nCookieLen, nEnd; var i = 0, j; nArgLen = strArg.length; nCookieLen = document.cookie.length; if(nCookieLen > 0) { while(i < nCookieLen) { j = i + nArgLen; if(document.cookie.substring(i, j) == strArg) { nEnd = document.cookie.indexOf (";", j); if(nEnd == -1) nEnd = document.cookie.length; return unescape(document.cookie.substring(j, nEnd)); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } } return(""); } function GetCriteoSection(data, name) { eval("var r=/.*(?:^|&)" + name + "=(.+?)(?:&|$).*/gi"); return data.replace(r, "$1"); } // 크리테오용 스크립트 e function fn_right_top_ad(inSn, bSecond) { if (inSn =="") { inSn = "25";} if(typeof(bSecond) != "undefined" && bSecond == true) { document.write(''); document.write('
      '); document.write(' '); document.write('
      '); document.write(''); document.write('
      '); } else { var cnt = 0; var toDay = new Date(); var toY= toDay.getFullYear(); var toM = (toDay.getMonth()+1)>9 ? ''+(toDay.getMonth()+1) : '0'+(toDay.getMonth()+1); var toD = toDay.getDate()>9 ? ''+toDay.getDate() : '0'+toDay.getDate(); var c_time = toY+"-"+toM+"-"+toD; var data = CriteoGetCookie("112425"); var strReturnC = GetCriteoSection(CriteoGetCookie("112425"), "c"); var strReturnV = GetCriteoSection(CriteoGetCookie("112425"), "v"); var strReturnT_1 = CriteoGetCookie("criteo_ctime_1"); var viewCnt_1 = new Number(CriteoGetCookie("shop_count_1")); if(strReturnV == "1" && strReturnT_1 != c_time) { //입력된 날짜가(c_time)이 오늘이 아닐때 카운터를 초기화 후 당일 날짜를 셋팅 CriteoSetCookie("criteo_ctime_1",c_time, 1 , "/", ".joinsmsn.com"); //당일날자로 쿠키 생성 CriteoSetCookie("shop_count_1",0, 1 , "/", ".joinsmsn.com"); //샵카운트 쿠키 생성. 0부터 시작 } else if( strReturnV == "1" && viewCnt_1 < 9 ) { //입력된 날짜가(c_time)이 오늘과 똑같거나 카운트가 9보다 작을 때 var cnt = new String(viewCnt_1 + 1); CriteoSetCookie("shop_count_1",cnt , 1, "/", ".joinsmsn.com"); //페이지에 접속할때마다 카운터 1식 증가 } document.write(' '); document.write('
      '); if(strReturnV =="1" && viewCnt_1 < 9){ //카운트가 9보다 작을 때 크리테오 스크립트 작동 document.write(" "); }else{ /* 기존 opap hc.aspx iframe 코드 */ /*넘겨줘햐 하는 값들 ssn :광고 슬롯SN b : 도메인명 articleid : 기사 ID (total ID 아님) mediaid : 인터웍스에서 사용하는 매체ID(joins,igs) site : 인터웍스에서 사용하는 사이트구분(news.joinsmsn.com,isplus.joins.com) page : 인터웍스에서 사용하는 사이트구분(joins_news,isplus_joins_news) */ if(typeof(sArticleId) != "undefined") d_articleid = sArticleId; else d_articleid = ""; d_mediaid = "igs" ; d_site = "isplus.joins.com"; d_page = "isplus_joins_news"; document.write(''); } document.write('
      '); document.write(' '); document.write('
      '); } } function news_common_sonagi_tab(objname, arrobj, defaulttab,vt,ctg) { $.getScript("http://static.joinsmsn.com/portal/data/common/auto/sonagi/article_right_sonagi.js", function() { tobj=$("#"+objname); if(arrobj.length==3) { tobj.addClass("tab_type3") } if(arrobj.length==4) { tobj.addClass("tab_type4") } var str=""; var item=0; for(item=0;item"+item_name+"" str=str+"
        "; for(i=0;i22) { title = (title.substr(0, 22)+'…'); } str=str+"
      1. "+title+"
      2. "; } str=str+"
      "; } } $("#sonagi_tab").append(str); }); } function fn_view_sonagi_tab(no){ $("#sonagi_tab > h3").removeClass("on"); $("#sonagi_tab_"+no).addClass("on"); $("#sonagi_tab > ol").removeClass("on"); $("#sonagi_tab_list_"+no).addClass("on"); } function fn_right_sonagi(ctg,vt){ document.write(' '); document.write('
      '); document.write('
      '); document.write('

      많이 본 기사

      '); document.write('
      '); document.write('
      '); //portal common_ui.js if(ctg=="00") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],0,vt,ctg); if(ctg=="10") news_common_sonagi_tab("sonagi_tab",["10|정치","00|종합","14|스포츠","15|연예"],0); if(ctg=="11") news_common_sonagi_tab("sonagi_tab",["11|경제","00|종합","14|스포츠","15|연예"],0); if(ctg=="12") news_common_sonagi_tab("sonagi_tab",["12|사회","00|종합","14|스포츠","15|연예"],0); if(ctg=="13") news_common_sonagi_tab("sonagi_tab",["13|국제","00|종합","14|스포츠","15|연예"],0); if(ctg=="14") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],1,vt,ctg); if(ctg=="15") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],2,vt,ctg); if(ctg=="16") news_common_sonagi_tab("sonagi_tab",["16|IT/과학","00|종합","14|스포츠","15|연예"],0); if(ctg=="17") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],0,vt,ctg); document.write('
      '); document.write(' '); document.write('
      '); } // 인기 포토 var hot_photo_tab_idx = 1; function fn_right_hot_photo(vt,ctg){ document.write(' '); document.write('
      '); document.write('
      '); document.write('

      인기 포토

      '); document.write('
      '); document.write('
      '); document.write('
      '); document.write('
      '); document.write(' 1 / 5'); document.write('
      '); document.write(' '); document.write(' '); document.write('
      '); document.write('
      '); document.write('
      '); document.write(' '); document.write('
      '); var str = ""; $.getScript("http://static.joinsmsn.com/portal/data/pnews/stat/portal_right_pop_photo.js",function() { /*@right_photo((start)@*/ /*@right_photo((end)@*/ var tjson; if(typeof(pnews_right_right_photo) == "undefined") return; else tjson = pnews_right_right_photo; fRnd = Math.floor(Math.random() * 5); // 랜덤 fCount = tjson.image.length ; for (fi=0;fi'; } //str +='
    1. '+fTitle+' silde보기
    2. '; str +='
    3. '+fTitle+'
    4. '; if (fNmg == "1") { str +=' '; } } $("#portal_right_hot_photo_ul").html(str); $("#portal_right_hot_photo").show(); }); } //인기포토 : 이전다음 function fn_show_hot_photo_tab(dir, inMax){ if(dir == "prev"){ hot_photo_tab_idx--; } if(dir == "next"){ hot_photo_tab_idx++; } if (hot_photo_tab_idx > inMax) { hot_photo_tab_idx = "1"; }else if (hot_photo_tab_idx < "1") { hot_photo_tab_idx = inMax ; } setHot_Photo_Tab_Change(hot_photo_tab_idx ); $("#hot_photo_num").html(""+hot_photo_tab_idx+" / 5"); } //인기포토 : 슬라이드 텝 var arrHot_Photo_Tab = ["gallery_tab_0","gallery_tab_1","gallery_tab_2","gallery_tab_3","gallery_tab_4"]; function setHot_Photo_Tab_Change(tabid) { tabid = tabid -1 ; try { for (i=0;i'); document.write(''); document.write(''); document.write('
      '); var str = ""; $.getScript("http://static.joinsmsn.com/portal/data/pnews/stat/portal_right_fresh_gallery.js",function() { /*@right_fresh_gallery(start)@*/ /*@right_fresh_gallery(end)@*/ var tjson; if(typeof(pnews_right_right_fresh_gallery) == "undefined") return; else tjson = pnews_right_right_fresh_gallery; var str = ''; var tobj; var div_class=""; _g_right_fresh_gallery_length = tjson.image.length; fRnd = Math.floor(Math.random() * 5); // 랜덤 for (i=0;i'); str = str +(' '); str = str +(' '); str = str +(' '+tjson.text[i].value+''); str = str +(' '); str = str +(''); } $("#fresh_gallery_items").html(str); //if (vt!=="portal_news" && vt!=="portal_issue"){ setTimeout('$("#fresh_gallery").show();',10); }); } // 생생화보 : 슬라이드텝변경 function fn_right_fresh_gallery_go(dir){ if(dir=="prev"){ _g_right_fresh_gallery_index--; if(_g_right_fresh_gallery_index<0)_g_right_fresh_gallery_index=_g_right_fresh_gallery_length-1; $("#fresh_gallery_items > div").hide(); $("#fresh_gallery_item_"+_g_right_fresh_gallery_index).show(); } if(dir=="next"){ _g_right_fresh_gallery_index++; if(_g_right_fresh_gallery_index>(_g_right_fresh_gallery_length-1))_g_right_fresh_gallery_index=0; $("#fresh_gallery_items > div").hide(); $("#fresh_gallery_item_"+_g_right_fresh_gallery_index).show(); } } var fresh_n_tid; function fresh_area_start_rolling(){ fresh_n_tid = setInterval("fn_right_fresh_gallery_go('next')",6000); } function fresh_area_stop_rolling(){ clearInterval(fresh_n_tid); } // 생생화보 롤링 fresh_area_start_rolling(); //롤링 롤오버 $(document).ready(function(){ $("#portal_right_hot_photo").hover(fn_best_photo_area_stop_rolling,fn_best_photo_area_start_rolling); $("#fresh_gallery").hover(fresh_area_stop_rolling,fresh_area_start_rolling); }); // 쇼핑박스 function fn_right_shoppingbox(inMedia){ if (inMedia=="portal") { fMedia = "Newjoinsmsn" ; } else { fMedia = "NewisplusV2" ; } document.write(' '); document.write('
      '); document.write(' '); document.write('
      '); document.write(' '); document.write('
      '); }