PageSourceSearch

https://futsal-paraiso.jp/wp/wp-content/themes/paraiso/js/rollover.js

js futsal-paraiso.jp collected 2026-10-05 07:31:40 UTC 1,327 bytes, 52 lines download raw bytes

1
2function initRollovers() {
3	if (!document.getElementById) return
4	
5	var aPreLoad = new Array();
6	var sTempSrc;
7	var aImages = document.getElementsByClassName("rollover");
8
9
10	for (var i = 0; i < aImages.length; i++) {
11		if (aImages[i].getElementsByTagName('img')) {
12			var src = aImages[i].getAttribute('src');
13			var ftype = src.substring(src.lastIndexOf('.'), src.length);
14			var hsrc = src.replace(ftype, '_o'+ftype);
15
16			aImages[i].setAttribute('hsrc', hsrc);
17			
18			aPreLoad[i] = new Image();
19			aPreLoad[i].src = hsrc;
20			
21			aImages[i].onmouseover = function() {
22				sTempSrc = this.getAttribute('src');
23				this.setAttribute('src', this.getAttribute('hsrc'));
24			}	
25			
26			aImages[i].onmouseout = function() {
27				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('-on'+ftype, ftype);
28				this.setAttribute('src', sTempSrc);
29			}
30		}
31	}
32}
33
34document.getElementsByClassName = function(classname) {
35	var elements = new Array();
36	var re = new RegExp('(^| )'+classname+'( |$)');
37	var ael = document.getElementsByTagName('*');
38	var op = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
39	if (document.all && !op) ael = document.all;
40		for(i=0, j=0 ; i<ael.length ; i++) {
41			if(re.test(ael[i].className)) {
42				elements[j]=ael[i];
43				j++;
44			}
45		}
46	return elements;
47};
48
49window.onload = initRollovers;
50
51
52

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.