(function($) { $('.normal_general div:nth-child(1)').addClass('general_list1'); $('.normal_general div:nth-child(2)').addClass('general_list2'); $('.normal_general div:nth-child(3)').addClass('general_list3'); $('.normal_general div:nth-child(4)').addClass('general_list4'); $('.normal_general div:nth-child(5)').addClass('general_list5'); $('.normal_general div:nth-child(6)').addClass('general_list6'); $('.normal_recomm div:nth-child(1)').addClass('recomm_list1'); $('.normal_recomm div:nth-child(2)').addClass('recomm_list2'); $('.normal_recomm div:nth-child(3)').addClass('recomm_list3'); $('.normal_recomm div:nth-child(4)').addClass('recomm_list4'); $('.normal_recomm div:nth-child(5)').addClass('recomm_list5'); $('.normal_general2 div:nth-child(1)').addClass('general_list1'); $('.normal_general2 div:nth-child(2)').addClass('general_list2'); $('.normal_general2 div:nth-child(3)').addClass('general_list3'); $('.normal_general2 div:nth-child(4)').addClass('general_list4'); $('.normal_general2 div:nth-child(5)').addClass('general_list5'); $('.normal_general2 div:nth-child(6)').addClass('general_list6'); $('.normal_recomm2 div:nth-child(1)').addClass('recomm_list1'); $('.normal_recomm2 div:nth-child(2)').addClass('recomm_list2'); $('.normal_recomm2 div:nth-child(3)').addClass('recomm_list3'); $('.normal_recomm2 div:nth-child(4)').addClass('recomm_list4'); $('.normal_recomm2 div:nth-child(5)').addClass('recomm_list5'); $('.photo_text div:nth-child(1)').addClass('photo_list1'); $('.photo_text div:nth-child(2)').addClass('photo_list2'); $('.photo_text div:nth-child(3)').addClass('photo_list3'); $('.photo_text div:nth-child(4)').addClass('photo_list4'); $('.photo_text div:nth-child(5)').addClass('photo_list5'); $('.photo_text div:nth-child(6)').addClass('photo_list6'); $('.photo_text2 div:nth-child(1)').addClass('photo_list1'); $('.photo_text2 div:nth-child(2)').addClass('photo_list2'); $('.photo_text2 div:nth-child(3)').addClass('photo_list3'); $('.photo_text2 div:nth-child(4)').addClass('photo_list4'); $('.photo_text2 div:nth-child(5)').addClass('photo_list5'); $('.photo_text2 div:nth-child(6)').addClass('photo_list6'); $('.pureElement').addClass('animated fadeInUp'); $('.pureElement2').addClass('animated fadeInUp'); $('.info_view .table_info2').eq(1).addClass("goods_name"); $('.info_view .table_info').eq(3).html("¸Å¹°°¡°Ý"); $('.info_view .table_info2').eq(3).addClass("price_all"); $('.info_view .table_info').eq(5).html("¼ÒÀçÁö"); $('.info_view .table_info2').eq(5).addClass("ad_drop"); $('.info_view .table_info').eq(10).remove(); $('.info_view .table_info2').eq(10).addClass("editor_box"); $('.info_view .table_info').eq(0).remove(); $('.info_view .table_info2').eq(0).remove(); $('.info_view .table_info2').html(function(i, text) { return text.replace("¿ù¼¼", "ÀÓ´ë·á") }); $(function(){ var str = document.getElementById("all_item").innerHTML; var str = str.replace(/¸Å¸Å/g,"¸Å¸Å"); var str = str.replace(/Àü¼¼/g,"Àü¼¼"); var str = str.replace(/¿ù¼¼/g,"¿ù¼¼"); var str = str.replace(/ÀÓ´ë/g,"ÀÓ´ë"); var str = str.replace(/ºÐ¾ç/g,"ºÐ¾ç"); document.getElementById("all_item").innerHTML = str; }); $(".ad_drop").each(function(){ var length = 15; //Ç¥½ÃÇÒ ±ÛÀÚ¼ö $(this).each(function(){ if( $(this).text().length >= length ){ $(this).text( $(this).text().substr(5,18)+'') //ÁöÁ¤ÇÒ ±ÛÀÚ¼ö ÀÌÈÄ Ç¥½ÃÇÒ ÅؽºÆ® } }); }); }) (jQuery);