PageSourceSearch

https://www.hussainiat.com/JavaScript/tc.js

js hussainiat.com collected 2026-09-24 09:47:43 UTC 1,052 bytes, 55 lines download raw bytes

1var pics=new Array();
2var stat=new Array();
3var pic=new Array();
4
5function changepic(i,code)
6{ var loop=0;
7
8	if (stat[code])
9	{
10		while ((pics[code][i]==0 || i>=16) && loop<100)
11		{ if (i>=16) { i=0; }
12			else
13			{ i++;
14			}		
15			loop++;
16		}
17		
18		if (pic[code][i].complete)
19		{	document.getElementById(code).src=pic[code][i].src;
20			setTimeout("changepic("+(i+1)+",'"+code+"')",500);
21		}
22		else
23		{	setTimeout("changepic("+i+",'"+code+"')",20);
24		}
25	}
26	
27	
28}
29
30function loadpic(url,code,j)
31{	if (stat[code]) { pic[code][j].src=url; }
32}
33
34function startm(code,ta,te)
35{	stat[code]=1;
36	var jj, jjj;
37	var first=1;
38	
39	for(var j=0;j<16;j++)
40	{ if (pics[code][j]==1)
41		{ pic[code][j]=new Image();
42			jj=j+1;
43			if (jj>=100) { jjj=""+jj; }
44			if (jj<100 && jj>=10) { jjj="0"+jj; }
45			if (jj<10) { jjj="00"+jj; }
46			if (first) { first=0; loadpic(ta+jjj+te,code,j); }
47			else { setTimeout("loadpic('"+ta+jjj+te+"','"+code+"',"+j+")",j*50); }
48		}
49	}
50	changepic(0,code);
51}
52
53function endm(code)
54{	stat[code]=0;
55}

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.