기사검색

구독하기 2025.05.24. (토)

내국세

공무원문화대전입상 박종국〈홍성署 납세지원과장〉

수필 `설사와 향기' 행자부장관상 수상

var MYNEWS_PHOTO_LIMIT_WIDTH = parseInt("680"); var imageLoaded = function(obj) { // Run onload code. var title = obj.attr('title'); obj.attr('alt', title); obj.removeAttr('title'); var image_align_class = ""; var clazz = obj.attr('class'); if (clazz != null && clazz.length > 0) { image_align_class = " "+clazz; } // 에디터에서 들어간 기사가 아닐 경우, 태그 씌우지 않음 if(obj.attr('xtype') === undefined) { return; } obj.attr('class', 'img'); obj.removeAttr('xtype'); var w = obj.width(); if (isNaN(w)) { w = 0; } var h = parseInt(obj.css('height')); if (isNaN(h)) { h = 0; } if (w <= 0) { var timg = new Image(); timg.src = this.src; w = parseInt(timg.width); if (isNaN(w)) { //... } } if (w > MYNEWS_PHOTO_LIMIT_WIDTH) { var pct = parseFloat(MYNEWS_PHOTO_LIMIT_WIDTH) / parseFloat(w); w = MYNEWS_PHOTO_LIMIT_WIDTH; if (pct > 0 && pct < 1 && h > 0) { h = Math.floor(parseFloat(h) * pct); } } obj.css('width', w+"px"); if (h > 0) { obj.css('height', h+"px"); } if(image_align_class.trim() == "sm-image-c") { obj.wrap("
"); } else { obj.wrap("
"); } if (title != null && title.length > 1) { // 기본 공백 무시 if (title.indexOf('▲') == -1) { title = '▲ ' + title; } // obj.after("
"+title+"
"); obj.after("
"+title+"
"); } if(document.getElementsByClassName('news_body_area').length > 0){ if(document.getElementsByClassName('news_body_area')[0].getElementsByTagName('img').length > 0){ imgTag = document.getElementsByClassName('news_body_area')[0].getElementsByTagName('img'); for(i = 0; i < imgTag.length; i++){ width = imgTag[i].width; tableTag = imgTag[i].parentNode.parentNode.parentNode.parentNode.parentNode; if(tableTag.tagName == 'TABLE'){ tableTag.setAttribute('style',"width:" + width + "px;margin:10px auto"); } } } } } var img_caption = setInterval(make_caption, 1000); function make_caption() { /* $("img[xtype='photo']").each(function() { if($(this).width() > 0) { imageLoaded($(this)); clearInterval(img_caption); } }); */ $("div.news_body_area img").each(function() { if($(this).width() > 0) { imageLoaded($(this)); clearInterval(img_caption); } }); } // 이미지 파일이 없는 경우 no image 출력 $(".news_body_area img").each(function(){ thisImgSrc = $(this).attr('src'); $(this).attr('src',thisImgSrc); $(this).error(function(){ $(this).attr('src','/data/design/logo/default_image_20200309155148.png'); }); });


배너



배너