1jQuery(function($){ 2 // LNB 3/* 4 $('.lnb>ul>li').mouseover(function() { 5 var menu_id = $(this).attr('class'); 6 //alert(menu_id); 7 $('.lnb>ul>li').children('ul').hide(); 8 $('.lnb>ul>li').children('.s'+menu_id).show(); 9 $('.lnb>ul>li').children('span').removeClass('active'); 10 $(this).children('span').addClass('active'); 11 }); 12 $('.lnb>ul>li>ul>li').mouseover(function() { 13 var sub_id = $(this).attr('class'); 14 //alert(sub_id); 15 $('.lnb>ul>li>ul>li').removeClass('active'); 16 $(this).addClass('active'); 17 }); 18 $('.lnb>ul>li').focusin(function() { 19 var smenu_id = $(this).attr('class'); 20 $('.lnb>ul>li').children('ul').hide(); 21 $('.lnb>ul>li').children('.s'+smenu_id).show(); 22 $('.lnb>ul>li').children('span').removeClass('active'); 23 $(this).children('span').addClass('active'); 24 }); 25 26 // NOWLNB 27 var tab = $('.tab_face'); 28 tab.removeClass('js_off'); 29 function onSelectTab(){ 30 var t = $(this); 31 var myclass = []; 32 t.parentsUntil('.tab_face:first').filter('li').each(function(){ 33 myclass.push( $(this).attr('class') ); 34 }); 35 myclass = myclass.join(' '); 36 if (!tab.hasClass(myclass)) tab.attr('class','tab_face').addClass(myclass); 37 } 38 tab.find('li>a').mouseover(onSelectTab).focus(onSelectTab); 39*/ 40 41 // style1 ì ì²´ë©ë´ í¼ì¹ê¸° 42 /* 43 $(function(){ 44 var lnbHr = $('.lnb'); 45 46 lnbHr.find('>ul>li>ul').hide(); 47 lnbHr.find('>ul>li>a') 48 .mouseover(function(){ 49 lnbHr.animate({height:'275px'}, 0.0001); 50 lnbHr.find('>ul>li>ul').slideDown(0.0001).end(); 51 lnbHr.find('>ul>li').removeClass('active').end(); 52 lnbHr.find('>ul>li>ul').removeClass('active').end(); 53 lnbHr.find('>ul>li>ul>li').removeClass('active').end(); 54 $(this).parent('li').addClass('active'); 55 $(this).parent('li').children('ul').addClass('active'); 56 $('.lnb_bg').show(); 57 }) 58 .focus(function(){ 59 $(this).mouseover(); 60 }) 61 .end() 62 .mouseleave(function(){ 63 lnbHr.animate({height:'54px'}, 0.0001); 64 lnbHr.find('>ul>li').removeClass('active').end(); 65 lnbHr.find('>ul>li>ul').removeClass('active').end(); 66 lnbHr.find('>ul>li>ul>li').removeClass('active').end(); 67 lnbHr.find('>ul>li>ul').slideUp(0.0001); 68 $('.lnb_bg').hide(); 69 }); 70 lnbHr.find('>ul>li>ul>li>a') 71 .mouseover(function(){ 72 lnbHr.find('ul').removeClass('active').end(); 73 lnbHr.find('li').removeClass('active').end(); 74 $(this).parent('li').addClass('active').end(); 75 $(this).parent('li').parent('ul').addClass('active').end(); 76 $(this).parent('li').parent('ul').parent('li').addClass('active').end(); 77 }) 78 .focus(function(){ 79 $(this).mouseover(); 80 }) 81 .end() 82 .mouseleave(function(){ 83 lnbHr.animate({height:'54px'}, 0.0001); 84 lnbHr.find('ul').removeClass('active').end(); 85 lnbHr.find('li').removeClass('active').end(); 86 }); 87 88 lnbHr.find('>ul>li>ul>li:last').addClass('last'); 89 90 lnbHr.find('>ul>li>ul>li.last').on('focusout', function(){ 91 $(this).mouseleave(); 92 }); 93 }); 94 */ 95 96 // style2 ì¼ë¶ë©ë´ í¼ì¹ê¸° 97 $("#lnb > ul > li").on("mouseenter",function(){ 98 var lnb_bg = "<div class='lnb_bg'></div>"; 99 var lnb_bg_ht = $(this).find(".lnb_sub").height(); 100 $(".lnb_bg").remove(); 101 $("#header").prepend(lnb_bg); 102 $(".lnb_bg").css({"height":lnb_bg_ht+60}); 103 $(this).addClass("active"); 104 $("#lnb > ul > li").children(".lnb_sub").hide(); 105 $(this).children(".lnb_sub").show(); 106 }); 107 $("#lnb > ul > li").on("mouseleave",function(){ 108 $(".lnb_bg").remove(); 109 $("#lnb ul > li").removeClass("active"); 110 $("#lnb ul > li").children(".lnb_sub").hide(); 111 }); 112 $("#lnb > ul > li > a").on("focusin",function(){ 113 var lnb_bg = "<div class='lnb_bg'></div>"; 114 var lnb_bg_ht = $(this).siblings(".lnb_sub").height(); 115 $(".lnb_bg").remove(); 116 $("#header").prepend(lnb_bg); 117 $(".lnb_bg").css({"height":lnb_bg_ht+60}); 118 $("#lnb > ul > li").children(".lnb_sub").hide(); 119 $(this).parent("active"); 120 $(this).siblings(".lnb_sub").css("display","block"); 121 // $(this).siblings(".lnb_sub").children("ul").children("li").last().children("ul").children("li").last().children("a").addClass("la"); 122 }); 123 // $(".lnb_sub > ul > li").on("focusout"," a.la", function(){ 124 // $(".lnb_bg").remove(); 125 // $("#lnb > li").removeClass("active"); 126 // $("#lnb > li").children(".lnb_sub").css("display","none"); 127 // }); 128 // lnb end 129 130 131 132}); 133 134 135 136 137 138 139
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.