PageSourceSearch

https://www.city.morioka.iwate.jp/_template_/_site_/_default_/_res/js/banner.js

js city.morioka.iwate.jp collected 2026-10-02 05:17:05 UTC 1,251 bytes, 37 lines download raw bytes

1/*===================================
2  [関数 chBanner]
3  バナーをランダム表示するJavascript
4====================================*/
5
6function chBanner(alt,url,img,width,height,call_position)
7{
8	var $ = FI.jQuery;
9	n = Math.floor(Math.random() * url.length);
10	//引数の呼び出し位置で指定している位置の直後に表示
11	if((url[n] == ""))
12		{
13		$(call_position).after('<p><img src="'+img[n]+'" width="'+width[n]+'" height="'+height[n]+'" alt="'+alt[n]+'"></p>');
14		}
15	else{
16		$(call_position).after('<p><a href="'+url[n]+'"><img src="'+img[n]+'" width="'+width[n]+'" height="'+height[n]+'" alt="'+alt[n]+'"></a></p>');
17		}
18
19}
20// _______________ end of function chBanner() ___ 
21
22
23function chPhoto(img,alt,width,height,title,cutline,call_position){
24	var $ = FI.jQuery;
25	n = Math.floor(Math.random() * img.length);
26	if (img[n] != "" && alt[n] != ""){
27		$(call_position).after('<p class="randomimg"><img src="'+img[n]+'" alt="'+alt[n]+'" width="'+width[n]+'" height="'+height[n]+'"></p>');
28		if (title[n] != "" && cutline[n] != ""){
29			$(call_position).after('<p>'+title[n]+'<br>'+cutline[n]+'</p>');
30		}else{
31			$(call_position).after('<p>'+title[n]+'</p>');
32		}
33	}
34}
35// _______________ end of function chPhoto() ___ 
36
37//EOF

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.