PageSourceSearch

https://mainichikirei.jp/assets/js/smartRollover.js

js mainichikirei.jp collected 2026-10-02 06:12:43 UTC 678 bytes, 26 lines download raw bytes

1// JavaScript Document
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			{
9				images[i].onmouseover = function() {
10					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
11				}
12				images[i].onmouseout = function() {
13					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
14				}
15			}
16		}
17	}
18}
19
20if(window.addEventListener) {
21	window.addEventListener("load", smartRollover, false);
22}
23else if(window.attachEvent) {
24	window.attachEvent("onload", smartRollover);
25}
26

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.