$(document).ready(function() { if($(".tbl_list").length) { $(this).find('.att_title').each(function() { var title = $(this).find('font').text(); $(this).attr('rel', title); }); } }); // URL ÆÄ¶ó¹ÌÅÍ ºÒ·¯¿À±â var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } }; // °Ô½ÃÆÇ Ä«Å×°í¸® ÀÚµ¿ »ý¼º $(document).ready(function() { var cate_link = [], cate_title = [], currentURL = $(location).attr('pathname'), param = "?&com_board_category_code=", currentParam = "", insertHTML = "", idx = 0; if($("select[name='com_board_category_code']").length > 0) { currentParam = getUrlParameter('com_board_category_code'); $("select[name='com_board_category_code'] > option").each(function() { cate_link[idx] = $(this).val(); cate_title[idx] = $(this).text(); idx++; }); insertHTML = '
'; insertHTML += ''; insertHTML += '
'; $(".brd_category").before(insertHTML); $.each(cate_link, function(m, key) { if(key == currentParam) { $(".board_tab > a").text(cate_title[m]); $(".board_tab > ul > li[data-category='" + key + "']").addClass('on'); } }); if(!currentParam) { $(".board_tab > ul > li:first").addClass('on'); } } }); // ¸®½ºÆ®Çü °Ô½ÃÆÇ ¸Ó¸´¸» ¼Ó¼º ºÎ¿© $(document).ready(function() { if($(".tbl_list").length) { $(this).find('.att_title').each(function() { var title = $(this).find('font').text(); $(this).attr('rel', title); }); } });