1(function ($) { 2 /* ------------------------------- */ 3 $(function(){ 4 load_event(); 5 link_box(); 6 more_box(); 7 }); 8})(jQuery); 9 10/*image rollover*/ 11var load_event = function(){ 12 $('a>img[src*="-out-"],input[src*="-out-"]').each(function(){ 13 var $$ = $(this); 14 $$.mouseover(function(){ $(this).attr('src', $(this).attr('src').replace(/-out-/,'-on-')) }); 15 $$.mouseout (function(){ 16 if ( $(this).attr('wws') != 'current' ) { $(this).attr('src', $(this).attr('src').replace(/-on-/,'-out-')) } 17 }); 18 }); 19 20 $('a[subwin]').die('click').click(subwin_func); 21 $("img.btnover").hover(function(){$(this).fadeTo("fast", 0.5);},function(){$(this).fadeTo("fast", 1);}); 22 23var nav = $('#header'), 24 offset = nav.offset(); 25 26$(window).scroll(function () { 27 if($(window).scrollTop() > offset.top) { 28 nav.addClass('fixed'); 29 } else { 30 nav.removeClass('fixed'); 31 } 32}); 33 34 35 36} 37 38/*sub window*/ 39var subwin_func = function () { 40 var $$ = $(this); 41 var param = $$.attr('subwin').split(/\D+/); 42 var w = param[0] || 300; 43 var h = param[1] || 300; 44 var s = ($$.attr('subwin').match(/slim/))?'no':'yes'; 45 var r = ($$.attr('subwin').match(/fix/) )?'no':'yes'; 46 var t = $$.attr('target') || '_blank' ; 47 window.open( $$.attr('href'), t, "resizable="+r+",scrollbars="+s+",width="+w+",height="+h ).focus(); 48 return false; 49} 50 51var link_box = function () { 52 $(".link_box").click(function () { 53 window.location = $(this).find("a").attr("href"); 54 return false; 55 }); 56} 57 58 59var more_box = function () { 60 var wH = $(document).height(); 61 $('#subnav').css('height', wH + 'px'); 62 var panel_DefW = $("#subnav").width(); 63 var btn_DefW = $("#subnav #subnav_wrp").width(); 64 $('#subnav').width(btn_DefW); 65 $('#navi').click(function() {slideMenu()}); 66 $('#subnav_close').click(function() {slideMenu()}); 67 68 function slideMenu(){ 69 if($("#subnav").width() > btn_DefW ){ 70 w = btn_DefW; 71 }else{ 72 w = panel_DefW; 73 } 74 $("#subnav").animate( 75 { 76 width: w 77 }, 78 "fast", 79 function(){ 80 $('#subnav #subnav_wrp').toggleClass('menu_active'); 81 } 82 ); 83 } 84} 85 86
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.