PageSourceSearch

https://novamnm.co.kr/ind-script/optimizer_user.php?filename=K05J5…d8fefe82ad3474aba2618de&t=1411101720&user=T

js novamnm.co.kr collected 2026-10-03 00:11:12 UTC 7,297 bytes, 253 lines download raw bytes

1/**
2 * 움직이는 배너 Jquery Plug-in
3 * @author  cafe24
4 */
5
6;(function($){
7
8    $.fn.floatBanner = function(options) {
9        options = $.extend({}, $.fn.floatBanner.defaults , options);
10        
11        return this.each(function() {
12            var aPosition = $(this).position();
13            var node = this;
14            
15            $(window).scroll(function() {       
16                var _top = $(document).scrollTop();
17                _top = (aPosition.top < _top) ? _top : aPosition.top;
18
19                setTimeout(function () {
20                    $(node).stop().animate({top: _top}, options.animate);
21                }, options.delay);
22            });
23        });
24    };
25
26    $.fn.floatBanner.defaults = { 
27        'animate'  : 500,
28        'delay'    : 500
29    };
30
31})(jQuery);
32    
33/**
34 * 문서 구동후 시작
35 */
36$(document).ready(function(){
37    $('#banner, #quick').floatBanner();
38});
39
40/**
41 *  썸네일 이미지 엑박일경우 기본값 설정
42 */
43$(window).load(function() {
44    $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){
45        var $img = new Image();
46        $img.onerror = function () {
47                $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif";
48        }
49        $img.src = this.src;
50    });
51});
52
53/* 즐겨찾기 */ 
54function bookmark(){ window.external.AddFavorite('http://novamnm.co.kr','Nova Media') } 
55
56//window popup script
57function winPop(url) {
58    window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no");
59}
60/**
61 * document.location.href split
62 * return array Param
63 */
64function getQueryString(sKey)
65{
66    var sQueryString = document.location.search.substring(1);
67    var aParam       = {};
68
69    if (sQueryString) {
70        var aFields = sQueryString.split("&");
71        var aField  = [];
72        for (var i=0; i<aFields.length; i++) {
73            aField = aFields[i].split('=');
74            aParam[aField[0]] = aField[1];
75        }
76    }
77
78    aParam.page = aParam.page ? aParam.page : 1;
79    return sKey ? aParam[sKey] : aParam;
80};
81
82
83/**
84 * paging HTML strong tag로 변형
85 */
86function convertPaging(){
87
88    $('.paging ol a').each(function() {
89        var sPage = $(this).text() ? $(this).text() : 1;
90
91        if (sPage == '['+getQueryString('page')+']') {
92            $(this).parent().html('<strong title="현재페이지">'+sPage+'</strong>');
93        } else {
94            var sHref = $(this).attr('href');
95            $(this).parent().html('<a href="'+sHref+'" title="'+sPage+'페이지로 이동">'+sPage+'</a>');
96        }
97    });
98}
99
100$(document).ready(function(){
101    // tab
102    $.eTab = function(ul){
103        $(ul).find('a').click(function(){
104            var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'),
105                _target = $(this).attr('href'),
106                _siblings = '.' + $(_target).attr('class');
107            $(_target).show().siblings(_siblings).hide();
108            return false
109        });
110    }
111    if ( window.call_eTab ) {
112        call_eTab();
113    };
114});
115$.fn.extend({
116    center: function() {
117        this.each(function() {
118            var
119                $this = $(this),
120                $w = $(window);
121            $this.css({
122                position: "absolute",
123                top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px",
124                left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px"
125            });
126        });
127        return this;
128    }
129});
130$(function() {
131    var $container = function(){/*
132<div id="modalContainer">
133    <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe>
134</div>');
135*/}.toString().slice(14,-3);
136    $('body')
137    .append($('<div id="modalBackpanel"></div>'))
138    .append($($container));
139    function closeModal () {
140        $('#modalContainer').hide();
141        $('#modalBackpanel').hide();
142    }
143    $('#modalBackpanel').click(closeModal);
144    zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) {
145        var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup;
146        $('#modalContent').attr('src', $url);
147        $('#modalContent').bind("load",function(){
148            $(".header .close",this.contentWindow.document.body).bind("click", closeModal);
149        });
150        $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show();
151        $('#modalContainer').center().show();
152    }
153});
154/**
155 * 카테고리 마우스 오버 이미지
156 * 카테고리 서브 메뉴 출력
157 */
158
159$(document).ready(function(){
160
161    var methods = {
162        aCategory    : [],
163        aSubCategory : {},
164
165        get: function()
166        {
167             $.ajax({
168                url : '/exec/front/Product/SubCategory',
169                dataType: 'json',
170                success: function(aData) {
171
172                    if (aData == null || aData == 'undefined') return;
173                    for (var i=0; i<aData.length; i++)
174                    {
175                        var sParentCateNo = aData[i].parent_cate_no;
176
177                        if (!methods.aSubCategory[sParentCateNo]) {
178                            methods.aSubCategory[sParentCateNo] = [];
179                        }
180
181                        methods.aSubCategory[sParentCateNo].push( aData[i] );
182                    }
183                }
184            });
185        },
186
187        getParam: function(sUrl, sKey) {
188
189            var aUrl         = sUrl.split('?');
190            var sQueryString = aUrl[1];
191            var aParam       = {};
192
193            if (sQueryString) {
194                var aFields = sQueryString.split("&");
195                var aField  = [];
196                for (var i=0; i<aFields.length; i++) {
197                    aField = aFields[i].split('=');
198                    aParam[aField[0]] = aField[1];
199                }
200            }
201            return sKey ? aParam[sKey] : aParam;
202        },
203
204
205        show: function(overNode, iCateNo) {
206
207            if (methods.aSubCategory[iCateNo].length == 0) {
208                return;
209            }
210
211            var aHtml = [];
212            aHtml.push('<ul>');
213            $(methods.aSubCategory[iCateNo]).each(function() {
214                aHtml.push('<li><a href="/'+this.design_page_url+this.param+'">'+this.name+'</a></li>');
215            });
216            aHtml.push('</ul>');
217
218
219            var offset = $(overNode).offset();
220            $('<div class="sub-category"></div>')
221                .appendTo(overNode)
222                .html(aHtml.join(''))
223                .find('li').mouseover(function(e) {
224                    $(this).addClass('over');
225                }).mouseout(function(e) {
226                    $(this).removeClass('over');
227                });
228        },
229
230        close: function() {
231            $('.sub-category').remove();
232        }
233    };
234
235    methods.get();
236
237
238    $('.xans-layout-category li').mouseenter(function(e) {
239          var $this = $(this).addClass('on'),
240            iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no'));
241
242          if (!iCateNo) {
243               return;
244          }
245
246          methods.show($this, iCateNo);
247     }).mouseleave(function(e) {
248        $(this).removeClass('on');
249
250          methods.close();
251     });
252});
253

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.