PageSourceSearch

https://hotaru-des-hotaru.com/js/functions.js

js hotaru-des-hotaru.com collected 2026-10-04 19:15:47 UTC 3,761 bytes, 122 lines download raw bytes

1// JavaScript Document
2
3
4// rollover //////////////////////////////////////////////////////
5rollovers=function(off,on){
6	img=document.getElementsByTagName("img");p=[];
7	off_reg=new RegExp(off+"(\.[a-z]+$)","i");on_reg=new RegExp(on+"(\.[a-z]+$)","i");
8	for(var x=0,i;i=img[x];x++){ if(i.src.match(off_reg)){p[x]=new Image();p[x].src=i.src.replace(off_reg,on+"$1");
9	i.onmouseover=function(){this.src=this.src.replace(off_reg,on+"$1");};
10	i.onmouseout=function(){this.src=this.src.replace(on_reg,off+"$1");};};};};
11	onload = function(){rollovers( "_rollout" , "_rollover" );}
12
13// rollover //////////////////////////////////////////////////////
14// code by http://jsdo.it/h2ham/qR8H ::::: very nice works
15
16jQuery(function($){
17  $('li','nav ul').hover(function(){
18    $(this).stop(true,true).fadeTo('fast',0.5);
19  },function(){
20    $(this).stop(true,true).fadeTo('slow',1.0);
21  });
22  $('li','ul#nav_bottom').hover(function(){
23    $(this).stop(true,true).fadeTo('fast',0.5);
24  },function(){
25    $(this).stop(true,true).fadeTo('slow',1.0);
26  });
27  $('a','ul').hover(function(){
28    $(this).stop(true,true).fadeTo('fast',0.5);
29  },function(){
30    $(this).stop(true,true).fadeTo('fast',1.0);
31  });
32  $('img','#topcontrol').hover(function(){
33    $(this).stop(true,true).fadeTo('fast',0.5);
34  },function(){
35    $(this).stop(true,true).fadeTo('fast',1.0);
36  });
37  $('a','p#googleMap').hover(function(){
38    $(this).stop(true,true).fadeTo('fast',0.5);
39  },function(){
40    $(this).stop(true,true).fadeTo('slow',1.0);
41  });
42  $('input#button_mfp_goconfirm').hover(function(){
43    $(this).stop(true,true).fadeTo('fast',0.5);
44  },function(){
45    $(this).stop(true,true).fadeTo('slow',1.0);
46  });
47  $('input#button_mfp_reset').hover(function(){
48    $(this).stop(true,true).fadeTo('fast',0.5);
49  },function(){
50    $(this).stop(true,true).fadeTo('slow',1.0);
51  });
52  $('input','div.buttons').hover(function(){
53    $(this).stop(true,true).fadeTo('fast',0.5);
54  },function(){
55    $(this).stop(true,true).fadeTo('slow',1.0);
56  });
57});
58
59
60
61// rollover //////////////////////////////////////////////////////
62$(function(){
63   // #で始まるアンカーをクリックした場合に処理
64   $('a[href^=#]').click(function() {
65      // スクロールの速度
66      var speed = 400;// ミリ秒
67      // アンカーの値取得
68      var href= $(this).attr("href");
69      // 移動先を取得
70      var target = $(href == "#" || href == "" ? 'html' : href);
71      // 移動先を数値で取得
72      var position = target.offset().top;
73      // スムーススクロール
74      $($.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'easeInCirc');
75      return false;
76   });
77});
78
79// area_link //////////////////////////////////////////////////////
80$(function(){
81     $(".zitem").click(function(){
82         window.open($(this).find("a").attr("href"), '_blank');
83         return false;
84    });
85		$(".zitem").hover(function(){
86        $(this).css("cursor","pointer");
87    });
88});
89
90// area_hover //////////////////////////////////////////////////////
91$(document).ready(function(){
92$(".area_hover").fadeTo(0,1.0);
93$(".area_hover").hover(function(){
94        $(this).css("cursor","pointer");
95        $(this).fadeTo(300,0.5);
96    },
97    function(){
98        $(this).fadeTo(300,1.0);
99    });
100$(".nivo-controlNav a").fadeTo(0,1.0);
101$(".nivo-controlNav a").hover(function(){
102        $(this).css("cursor","pointer");
103        $(this).fadeTo(300,0.5);
104    },
105    function(){
106        $(this).fadeTo(300,1.0);
107    });
108});
109
110// lightBox //////////////////////////////////////////////////////
111$(function() {  
112  $('#tj_container a').lightBox();  
113});
114
115$(function() {  
116  $('#boxMagazine_right a').lightBox();  
117});
118
119$(function() {  
120  $('#boxNews a.light_box').lightBox();  
121});
122

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.