/** * 카테고리 마우스 오버 이미지 * 카테고리 서브 메뉴 출력 */ $(document).ready(function(){ var methods = { aCategory : [], aSubCategory : {}, get: function() { $.ajax({ url : '/exec/front/Product/SubCategory', dataType: 'json', success: function(aData) { if (aData == null || aData == 'undefined') return; for (var i=0; i'+this.name+''); }); var offset = $(overNode).offset(); $('') .appendTo(overNode) .html(aHtml.join('')) .find('li').mouseover(function(e) { $(this).addClass('over'); }).mouseout(function(e) { $(this).removeClass('over'); }); return true; } }; methods.get(); $('.xans-layout-category li').mouseenter(function(e) { var iCateNo = Number(methods.getParam($(this).find('a').attr('href'), 'cate_no')); if(!iCateNo) return; if(methods.show(this, iCateNo)) $(this).find('a').addClass('on'); }).mouseleave(function(e) { $('.sub-category').remove(); $(this).find('a').removeClass('on'); }); });