PageSourceSearch

https://www.nasukogen.org/common/js/top.js

js nasukogen.org collected 2026-09-24 18:52:33 UTC 2,064 bytes, 60 lines download raw bytes

1$(function(){
2
3	// mouse over
4	$('.img_ovr').hover(function(){
5		$(this).attr('src', $(this).attr('src').replace(/_off/ig, '_on'));
6	}, function(){
7		$(this).attr('src', $(this).attr('src').replace(/_on/ig, '_off'));
8	});
9
10	// pagetop fadeInOut
11	$(window).scroll(function() {
12		var scrolly = $(this).scrollTop();
13		if (scrolly == 0) {
14			$('.pagetop').fadeOut('fast');
15		} else {
16			$('.pagetop').fadeIn();
17		}
18	});
19
20	// pagelink scroll
21	$('a[href^=#]').click(function(){
22		var Hash = $(this.hash);
23		if ($(Hash).offset()) {
24			var HashOffset = $(Hash).offset().top;
25			$('html,body').animate({scrollTop: HashOffset}, 1000);
26		}
27		return false;
28	});
29
30	// default font size
31	if ($.cookie('fontsize_nasukogen')) {
32		$('#font_size_css').attr({href: './common/css/' + $.cookie('fontsize_nasukogen') + '.css'});
33		$('.select_font').children('img').attr('src', $('.select_font').children('img').attr('src').replace(/_on/ig, ''));
34		$('.font_item').children().removeClass('select_font');
35		$('#' + $.cookie('fontsize_nasukogen')).attr('src', $('#' + $.cookie('fontsize_nasukogen')).attr('src').replace(/.gif/ig, '_on.gif'));
36		$('#' + $.cookie('fontsize_nasukogen')).parent('span').addClass('select_font');
37	}
38
39	// font size change
40	$('.size_item').click(function() {
41		var cssurl= './common/css/' + $(this).children('img').attr('id') + '.css';
42		$('#font_size_css').attr({href: cssurl});
43		$.cookie('fontsize_nasukogen', $(this).children('img').attr('id'), {
44			expires: 365,
45			path: '/'
46		});
47
48		$('.select_font').children('img').attr('src', $('.select_font').children('img').attr('src').replace(/_on/ig, ''));
49		$(this).children('img').attr('src', $(this).children('img').attr('src').replace(/.gif/ig, '_on.gif'));
50		$('.font_item').children().removeClass('select_font');
51		$(this).addClass('select_font');
52	});
53
54	$(".side_navi div").hover(function(){
55		$(this).stop(true, false).animate({marginLeft: "-132px"}, 800);
56	}, function(){
57		$(this).stop(true, false).animate({marginLeft: "0px"}, 800);
58	});
59
60});

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.