PageSourceSearch

https://www.karen-tsuma.com/isesaki2/js/common.js

js karen-tsuma.com collected 2026-10-08 01:06:16 UTC 4,343 bytes, 210 lines download raw bytes

1function MM_openBrWindow(theURL,winName,features) { //v2.0
2  window.open(theURL,winName,features);
3}
4
5/*--------------ページトップへスクロール--------------------*/
6
7var play_cnt = 0;
8
9function get_obj_y(target){
10
11  $gosa = 0; //微調整の値px
12
13  var pos = bytefx.$position(document.getElementById(target));
14  return pos.y + $gosa;
15}
16
17function softScrollBack(top) {
18
19  play_cnt++;
20  softScrollBackExec(top, play_cnt, 0);
21}
22
23function softScrollBackExec(top, play_no, scrj) {
24
25  if(play_cnt > play_no){
26    //### console.log("play_cnt="+ play_cnt +" : play_no="+ play_no);
27    return false;
28  }
29
30  if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
31    var scdist = document.body.parentNode.scrollTop;
32  } else if(navigator.appName == "Opera") {
33    var scdist = document.body.parentNode.scrollTop;
34  } else if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("Safari") != -1) {
35    var scdist = document.body.scrollTop;
36  } else if(navigator.appName == "Netscape" && document.compatMode == "CSS1Compat") {
37    var scdist = document.body.parentNode.scrollTop;
38  } else {
39    var scdist = document.body.scrollTop;
40  }
41
42
43  if(scdist >= top){
44    scdist = scdist - top;
45    flag = -1;
46    point = 0.2;
47  } else{
48    scdist = top - scdist;
49    flag =  1;
50    point = 0.2;
51  }
52
53  if(scrj<50 && scdist>0){
54     scdist = (scdist>2) ? Math.ceil(scdist*point) : 1;
55     scrj++;
56     scrollBy(0,flag * scdist);
57     //### console.log((flag * scdist));
58     //### console.log("play_cnt="+ play_cnt +" : play_no="+ play_no);
59     setTimeout("softScrollBackExec(" + top +","+ play_no +","+ scrj +")", 20);
60  }
61}
62
63
64
65/*---------jquery利用ロールオーバー---------*/
66$(document).ready(function(){
67
68    $("img.j_hover").fadeTo(0,1.0);
69
70    $("img.j_hover").hover(function(){
71
72    $(this).stop(true, false).fadeTo(300,0.4);    // マウスオーバースピード
73
74    },
75
76    function(){
77
78        $(this).stop(true, false).fadeTo(300,1.0);    // マウスアウトスピード
79
80    });
81
82    }
83
84);
85
86
87$(document).ready(function(){
88
89    $("img.j_hover2").fadeTo(0,1.0);
90
91    $("img.j_hover2").hover(function(){
92
93    $(this).stop(true, false).fadeTo(300,0);    // マウスオーバースピード
94
95    },
96
97    function(){
98
99        $(this).stop(true, false).fadeTo(300,1.0);    // マウスアウトスピード
100
101    });
102
103    }
104
105);
106
107
108$(document).ready(function(){
109
110    $("#recbtn1").fadeTo(0,1.0);
111
112    $("#recbtn1").hover(function(){
113
114    $(this).stop(true, false).fadeTo(300,0);    // マウスオーバースピード
115
116    },
117
118    function(){
119
120        $(this).stop(true, false).fadeTo(300,1.0);    // マウスアウトスピード
121
122    });
123
124    }
125
126);
127
128$(document).ready(function(){
129
130    $("#recbtn2").fadeTo(0,1.0);
131
132    $("#recbtn2").hover(function(){
133
134    $(this).stop(true, false).fadeTo(300,0);    // マウスオーバースピード
135
136    },
137
138    function(){
139
140        $(this).stop(true, false).fadeTo(300,1.0);    // マウスアウトスピード
141
142    });
143
144    }
145
146);
147
148$(document).ready(function(){
149
150    $("#recbtn3").fadeTo(0,1.0);
151
152    $("#recbtn3").hover(function(){
153
154    $(this).stop(true, false).fadeTo(300,0);    // マウスオーバースピード
155
156    },
157
158    function(){
159
160        $(this).stop(true, false).fadeTo(300,1.0);    // マウスアウトスピード
161
162    });
163
164    }
165
166);
167
168/*---------jquery右クリック無効化---------*/
169$(document).ready(function(){
170	$(document).bind("contextmenu",function(e){
171		return false;
172	});
173});
174
175
176/*--------------popup--------------------------------*/
177$(function() {
178	$(".popup1").click(function(){
179		window.open(this.href,"popup1","width=1000,height=710,resizable=no,scrollbars=no");
180		return false;
181	});
182});
183$(function() {
184	$(".popup2").click(function(){
185		window.open(this.href,"popup2","width=1000,height=740,resizable=no,scrollbars=no");
186		return false;
187	});
188});
189
190$(function() {
191	$(".close").click(function(){
192		window.close();
193		//alert("test");
194		return false;
195	});
196});
197
198/*--------------TOPに戻るボタン--------------------------------*/
199$(function() {
200	    var topBtn = $('.pagetop');   
201	    //スクロールしてトップ
202	    topBtn.click(function () {
203	        $('body,html').animate({
204	            scrollTop: 0
205	        }, { duration: 500, easing: 'easeOutCirc', });
206	        return false;
207	    });
208	});
209
210

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.