PageSourceSearch

https://www.jagat.co.jp/js/roll.js

js jagat.co.jp collected 2026-10-03 20:16:05 UTC 804 bytes, 33 lines download raw bytes

1function initRollovers() {
2if (!document.getElementById) return
3
4var aPreLoad = new Array();
5var sTempSrc;
6var aImages = document.getElementsByTagName('img');
7
8for (var i = 0; i < aImages.length; i++) { 
9if (aImages[i].className == 'ro') {
10var src = aImages[i].getAttribute('src');
11var ftype = src.substring(src.lastIndexOf('.'), src.length);
12var hsrc = src.replace(ftype, '_o'+ftype);
13
14aImages[i].setAttribute('hsrc', hsrc);
15
16aPreLoad[i] = new Image();
17aPreLoad[i].src = hsrc;
18
19aImages[i].onmouseover = function() {
20sTempSrc = this.getAttribute('src');
21this.setAttribute('src', this.getAttribute('hsrc'));
22} 
23
24aImages[i].onmouseout = function() {
25if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
26this.setAttribute('src', sTempSrc);
27}
28}
29}
30}
31
32window.onload = initRollovers;
33

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.