PageSourceSearch

https://www.piezodisc.com/Content/C_JS/scroll.js

js piezodisc.com collected 2026-10-09 00:46:45 UTC 2,898 bytes, 96 lines download raw bytes

1//--><![CDATA[//><!--
2		//图片滚动列表 mengjia 070816
3		var liwd = $("#List1 .pic").outerWidth();
4		//$(".rollPro .Cont").css("width",4*liwd);
5		var Speed = 10; //速度(毫秒)
6		var Space = 10; //每次移动(px)
7		var PageWidth = liwd; //翻页宽度
8		var fill = 0; //整体移位
9		var MoveLock = false;
10		var MoveTimeObj;
11		var Comp = 0;
12		var AutoPlayObj = null;
13		GetObj("List2").innerHTML = GetObj("List1").innerHTML;
14		GetObj('ISL_Cont').scrollLeft = fill;
15		GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
16		GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
17		AutoPlay();
18		function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval
19		
20		('document.all.'+objName)}}
21		function AutoPlay(){ //自动滚动
22		clearInterval(AutoPlayObj);
23		AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',3000); //间隔时间
24		}
25		function ISL_GoUp(){ //上翻开始
26		if(MoveLock) return;
27		clearInterval(AutoPlayObj);
28		MoveLock = true;
29		MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
30		}
31		function ISL_StopUp(){ //上翻停止
32		clearInterval(MoveTimeObj);
33		if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
34		Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
35		CompScr();
36		}else{
37		MoveLock = false;
38		}
39		AutoPlay();
40		}
41		function ISL_ScrUp(){ //上翻动作
42		if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj
43		
44		('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
45		GetObj('ISL_Cont').scrollLeft -= Space ;
46		}
47		function ISL_GoDown(){ //下翻
48		clearInterval(MoveTimeObj);
49		if(MoveLock) return;
50		clearInterval(AutoPlayObj);
51		MoveLock = true;
52		ISL_ScrDown();
53		MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
54		}
55		function ISL_StopDown(){ //下翻停止
56		clearInterval(MoveTimeObj);
57		if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
58		Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
59		CompScr();
60		}else{
61		MoveLock = false;
62		}
63		AutoPlay();
64		}
65		function ISL_ScrDown(){ //下翻动作
66		if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft =
67		
68		GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
69		GetObj('ISL_Cont').scrollLeft += Space ;
70		}
71		function CompScr(){
72		var num;
73		if(Comp == 0){MoveLock = false;return;}
74		if(Comp < 0){ //上翻
75		if(Comp < -Space){
76		   Comp += Space;
77		   num = Space;
78		}else{
79		   num = -Comp;
80		   Comp = 0;
81		}
82		GetObj('ISL_Cont').scrollLeft -= num;
83		setTimeout('CompScr()',Speed);
84		}else{ //下翻
85		if(Comp > Space){
86		   Comp -= Space;
87		   num = Space;
88		}else{
89		   num = Comp;
90		   Comp = 0;
91		}
92		GetObj('ISL_Cont').scrollLeft += num;
93		setTimeout('CompScr()',Speed);
94		}
95		}
96		//--><!]]>

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.