PageSourceSearch

https://azamn.com/skin/js/jquery.jslides.js

js azamn.com collected 2026-10-02 19:53:36 UTC 2,369 bytes, 92 lines download raw bytes

1/**
2 * jQuery jslides 1.1.0
3 *
4 * http://www.cactussoft.cn
5 *
6 * Copyright (c) 2009 - 2013 Jerry
7 *
8 * Dual licensed under the MIT and GPL licenses:
9 *   http://www.opensource.org/licenses/mit-license.php
10 *   http://www.gnu.org/licenses/gpl.html
11 */
12$(function(){
13	var numpic = $('#slides li').size()-1;
14	var nownow = 0;
15	var inout = 0;
16	var TT = 0;
17	var SPEED = 5000;
18
19
20	$('#slides li').eq(0).siblings('li').css({'display':'none'});
21
22
23	var ulstart = '<ul id="pagination">',
24		ulcontent = '',
25		ulend = '</ul>';
26	ADDLI();
27	var pagination = $('#pagination li');
28	var paginationwidth = $('#pagination').width();
29	$('#pagination').css('margin-left',(470-paginationwidth))
30	
31	pagination.eq(0).addClass('current')
32		
33	function ADDLI(){
34		//var lilicount = numpic + 1;
35		for(var i = 0; i <= numpic; i++){
36			ulcontent += '<li>' + '<a href="#">' + (i+1) + '</a>' + '</li>';
37		}
38		
39		$('#slides').after(ulstart + ulcontent + ulend);	
40	}
41
42	pagination.on('click',DOTCHANGE)
43	
44	function DOTCHANGE(){
45		
46		var changenow = $(this).index();
47		
48		$('#slides li').eq(nownow).css('z-index','900');
49		$('#slides li').eq(changenow).css({'z-index':'800'}).show();
50		pagination.eq(changenow).addClass('current').siblings('li').removeClass('current');
51		$('#slides li').eq(nownow).fadeOut(400,function(){$('#slides li').eq(changenow).fadeIn(500);});
52		nownow = changenow;
53	}
54	
55	pagination.mouseenter(function(){
56		inout = 1;
57	})
58	
59	pagination.mouseleave(function(){
60		inout = 0;
61	})
62	
63	function GOGO(){
64		
65		var NN = nownow+1;
66		
67		if( inout == 1 ){
68			} else {
69			if(nownow < numpic){
70			$('#slides li').eq(nownow).css('z-index','900');
71			$('#slides li').eq(NN).css({'z-index':'800'}).show();
72			pagination.eq(NN).addClass('current').siblings('li').removeClass('current');
73			$('#slides li').eq(nownow).fadeOut(400,function(){$('#slides li').eq(NN).fadeIn(500);});
74			nownow += 1;
75
76		}else{
77			NN = 0;
78			$('#slides li').eq(nownow).css('z-index','900');
79			$('#slides li').eq(NN).stop(true,true).css({'z-index':'800'}).show();
80			$('#slides li').eq(nownow).fadeOut(400,function(){$('#slides li').eq(0).fadeIn(500);});
81			pagination.eq(NN).addClass('current').siblings('li').removeClass('current');
82
83			nownow=0;
84
85			}
86		}
87		TT = setTimeout(GOGO, SPEED);
88	}
89	
90	TT = setTimeout(GOGO, SPEED); 
91
92})

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.