1/*=========================== 2 *×÷Õߣº¶¯Á¦Æôº½(л¿) 3 *ÍøÖ·£ºhttp://www.it134.cn 4 *ת·¢Çë±£Áô×÷ÕßÐÅÏ¢£¬Ð»Ð» 5===========================*/ 6 7//=====================È«¾Öº¯Êý======================== 8//Tab¿ØÖƺ¯Êý 9function tabs(tabId, tabNum){ 10 //ÉèÖõã»÷ºóµÄÇл»Ñùʽ 11 $(tabId + " .tab li").removeClass("curr"); 12 $(tabId + " .tab li").eq(tabNum).addClass("curr"); 13 //¸ù¾Ý²ÎÊý¾ö¶¨ÏÔʾÄÚÈÝ 14 $(tabId + " .tabcon").hide(); 15 $(tabId + " .tabcon").eq(tabNum).show(); 16} 17//=====================È«¾Öº¯Êý======================== 18 19//==================ͼƬÏêϸҳº¯Êý===================== 20//Êó±ê¾¹ýÔ¤ÀÀͼƬº¯Êý 21function preview(img){ 22 $("#preview .jqzoom img").attr("src",$(img).attr("src")); 23 $("#preview .jqzoom img").attr("jqimg",$(img).attr("bimg")); 24} 25 26//Êó±ê¾¹ýÌí¼ÓÑùʽ 27$(function(){ 28 $(".items li").hover(function () { 29 var index = $(this).index(); 30 $(".items li img").removeClass("hover").eq(index).addClass("hover"); 31 }); 32}); 33 34//ͼƬ·Å´ó¾µÐ§¹û 35$(function(){ 36 $(".jqzoom").jqueryzoom({xzoom:380,yzoom:410}); 37}); 38 39//ͼƬԤÀÀÐ¡Í¼ÒÆ¶¯Ð§¹û,Ò³Ãæ¼ÓÔØÊ±´¥·¢ 40$(function(){ 41 var tempLength = 0; //ÁÙʱ±äÁ¿,µ±Ç°Òƶ¯µÄ³¤¶È 42 var viewNum = 3; //ÉèÖÃÿ´ÎÏÔʾͼƬµÄ¸öÊýÁ¿ 43 var moveNum = 1; //ÿ´ÎÒÆ¶¯µÄÊýÁ¿ 44 var moveTime = 300; //ÒÆ¶¯ËÙ¶È,ºÁÃë 45 var scrollDiv = $(".spec-scroll .items ul"); //½øÐÐÒÆ¶¯¶¯»µÄÈÝÆ÷ 46 var scrollItems = $(".spec-scroll .items ul li"); //ÒÆ¶¯ÈÝÆ÷ÀïµÄ¼¯ºÏ 47 var moveLength = scrollItems.eq(0).width() * moveNum; //¼ÆËãÿ´ÎÒÆ¶¯µÄ³¤¶È 48 var countLength = (scrollItems.length - viewNum) * scrollItems.eq(0).width(); //¼ÆËã×ܳ¤¶È,×ܸöÊý*µ¥¸ö³¤¶È 49 50 //ÏÂÒ»ÕÅ 51 $(".spec-scroll .next").bind("click",function(){ 52 if(tempLength < countLength){ 53 if((countLength - tempLength) > moveLength){ 54 scrollDiv.animate({left:"-=" + moveLength + "px"}, moveTime); 55 tempLength += moveLength; 56 }else{ 57 scrollDiv.animate({left:"-=" + (countLength - tempLength) + "px"}, moveTime); 58 tempLength += (countLength - tempLength); 59 } 60 } 61 }); 62 //ÉÏÒ»ÕÅ 63 $(".spec-scroll .prev").bind("click",function(){ 64 if(tempLength > 0){ 65 if(tempLength > moveLength){ 66 scrollDiv.animate({left: "+=" + moveLength + "px"}, moveTime); 67 tempLength -= moveLength; 68 }else{ 69 scrollDiv.animate({left: "+=" + tempLength + "px"}, moveTime); 70 tempLength = 0; 71 } 72 } 73 }); 74}); 75//==================ͼƬÏêϸҳº¯Êý=====================
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.