PageSourceSearch

https://www.sgibutsudan.com/js/rollover.js

js sgibutsudan.com collected 2026-09-26 07:45:52 UTC 1,078 bytes, 37 lines download raw bytes

1/* Rollover */
2function smartRollover() {
3	if(document.getElementsByTagName) {
4		var images = document.getElementsByTagName("img");
5
6		for(var i=0; i < images.length; i++) {
7			if(images[i].getAttribute("src").match("_off.")) {
8				images[i].onmouseover = function() {
9					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
10				}
11				images[i].onmouseout = function() {
12					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
13				}
14			}
15		}
16
17		var inputs = document.getElementsByTagName("input");
18
19		for(var i=0; i < inputs.length; i++) {
20			if(inputs[i].className.match("input_off")) {
21				inputs[i].onmouseover = function() {
22					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
23				}
24				inputs[i].onmouseout = function() {
25					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
26				}
27			}
28		}
29	}
30}
31
32if(window.addEventListener) {
33	window.addEventListener("load", smartRollover, false);
34}
35else if(window.attachEvent) {
36	window.attachEvent("onload", smartRollover);
37}

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.