PageSourceSearch

https://unet.or.jp/theme_user/00032/theme_u-net01/js/jquery.tsukaeru.js

js unet.or.jp collected 2026-10-02 12:12:09 UTC 4,662 bytes, 177 lines download raw bytes

1/*
2
3 *jQuery 1.7.1  tsukaeru.js
4
5 */
6
7
8//画像ボタン【_on】のついた同じ名前の画像に切り替えするロールオーバーのやつ
9(function($){
10	$.fadeRollover = function(option){
11		var conf = $.extend({
12			selector: '.imgover',
13			attachStr: '_on',
14			fadeTime: 400
15		}, option)
16
17		var targetImgs = $(conf.selector).not("[src*='" + conf.attachStr + "']");
18		targetImgs.each(function(){
19			this.rollOverImg = new Image();
20			this.rollOverImg.src = $(this).attr('src').replace(new RegExp('(\.gif|\.jpg|\.png)$'), conf.attachStr + '$1');
21			$(this.rollOverImg).css({position: 'absolute', opacity: 0});
22			$(this).before(this.rollOverImg);
23			$(this.rollOverImg).hover(function(){
24				$(this).animate({opacity: 1}, {duration: conf.fadeTime, queue: false});
25			},
26			function(){
27				$(this).animate({opacity: 0}, {duration: conf.fadeTime, queue: false});
28			});
29		});
30	};
31})(jQuery);
32
33
34(function($){
35	$.fn.pageswitch = function(options) {
36		var defaults = {
37			url:		'default',												// 'default' for <a>-href, use e.g. 'http://www.example.com' to overwrite href with another url
38			event: 		'click',												// e.g. 'click', 'mouseover', 'mouseenter', 'mouseleave', ..
39			target: 	'body',													// name of one or more animation selectors
40   			properties: { opacity: 0 },											// standard jquery animation properties, e.g. { opacity: 0 }
41			options: 	{ duration: 750, easing: "linear", queue: true }		// standard jquery animation options, e.g. { duration: 750 }
42   		};
43		
44   		var options = $.extend(defaults, options);
45		
46   		return this.each(function() {
47			if(options.url == 'default') var target = $(this).attr('href');
48			else var target = options.url;			
49						
50			$(this).bind(options.event, function() {	
51				options.options.complete = function() { window.location.replace(target) }; 
52				$(options.target).animate(options.properties, options.options);	   	
53				return false;		
54			});
55  		});
56 	};
57})(jQuery);
58
59
60
61
62
63//IE7使用時のちゅうい
64(function($){
65jQuery(function(){  
66    $.fadeRollover();  
67});  
68$(function () {
69	if ( $.browser.msie && $.browser.version <= 7 ) {
70 $('body').prepend('<div class="error">あなたは旧式ブラウザをご利用中です。このウェブサイトを快適に閲覧するにはブラウザをアップグレードしてください。</div>');
71	}
72});
73})(jQuery);
74
75
76
77//ページトップへボタン 上へスライドするの
78(function($){
79$(function(){
80	
81	var $btn = $('#toPageTop a');
82	var isHidden = true;
83	
84	// デフォルトは非表示
85	$btn.hide();
86	
87	$(window).scroll(function () {
88		if( $(this).scrollTop() > 100 ) {
89			if( isHidden ) {
90				$btn.stop(true,true).fadeIn();
91				isHidden = false;
92			}
93		} else {
94			if( !isHidden ) {
95				$btn.stop(true,true).fadeOut();
96				isHidden = true;
97			}
98		}
99	});
100	
101	// クリックイベントの登録
102	$btn.click(function(){
103		        
104		// ページトップへスクロール
105		$('html, body').animate({
106				'scrollTop': 0
107			}, 900, 'easeInOutExpo');
108		
109		// デフォルトイベントのキャンセル
110		return false;
111	
112	});
113	
114});
115})(jQuery);
116
117
118//ページ切り替え時ふわっとするやつ
119/*
120(function($){
121var pngDisp = function(isShow) {
122	$('img').each(function(){
123		if ($(this).attr('src').indexOf('.png') != -1) {
124			if (isShow) {
125				$(this).show();
126			} else {
127				$(this).hide();
128			}
129		}
130	});
131};
132	
133$('#wrap').hide();
134var windowFade = function(){
135    $('#wrap').fadeIn(400);
136    $('.menu-item a').click(function(){
137        var url = $(this).attr("href");
138		pngDisp(false);
139        $('#wrap').animate({"opacity":0},400,function(){
140            location.href = url;
141        });
142		
143        return false;
144    });
145};
146 
147window.onload = function() {
148    windowFade();
149};
150 
151window.onunload = function() {
152    windowFade();
153};
154})(jQuery);
155
156
157//ページ切り替え時のPNGがおかしなことになるのをなおすやつ
158(function($){
159$(function() {
160    if(navigator.userAgent.indexOf("MSIE") != -1) {
161        $('img').each(function() {
162            if($(this).attr('src').indexOf('.png') != -1) {
163                $(this).css({
164                    'filter': 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' +
165                    $(this).attr('src') +
166                    '", sizingMethod="scale");'
167                });
168            }
169        });
170    }
171});
172
173if($.browser.msie)
174  $("targetDom").fadeIn("nomal",function(){ this.style.removeAttribute("filter"); });
175else
176  $("targetDom").fadeIn("nomal");
177  })(jQuery);*/

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.