1 2// mouseover script 3// @param ãªã 4// @return ãªã 5$(function imgOver() { 6 $('img, input:image').each(function() { 7 var node = this; 8 if(node.src.match("_off.")) { 9 node.originalSrc = node.src; 10 node.temporarySrc = node.originalSrc.replace(/_off/,''); 11 node.rolloverSrc = node.temporarySrc.replace(/(\.gif|\.jpg|\.png)/,'_on'+"$1"); 12 node.activeSrc = node.temporarySrc.replace(/(\.gif|\.jpg|\.png)/,'_active'+"$1"); 13 //ç»åã®ããªãã¼ãå¦çéå§ 14 preloadImage(node.rolloverSrc); 15 //Mouseover 16 node.onmouseover = function() { 17 if(this.className!='active') { 18 this.src = this.rolloverSrc; 19 } 20 } 21 //Mouseout 22 node.onmouseout = function() { 23 if(this.className!='active') { 24 this.src = this.originalSrc; 25 } 26 } 27 } 28 }); 29}); 30 31// ç»åã®ããªãã¼ããè¡ã颿° 32// @param string ç»åã®ãã¹ 33// @return ãªã 34preloadImages = []; 35preloadImage = function(path) { 36 var pre = preloadImages; 37 var len = pre.length; 38 pre[len] = new Image(); 39 pre[len].src = path; 40} 41 42//ãã©ã³ããµã¤ãº 43function clear(){ 44 $("#fonts_b").removeClass("big_on"); 45 $("#fonts_s").removeClass("mid_on"); 46}; 47 48 49$(document).ready(function() { 50 $("#fonts_s").addClass("mid_on"); 51 52 var L_SIZE = '88%'; //大ãããµã¤ãº 53 var M_SIZE = '75%'; //ããã©ã«ãã®ãµã¤ãº 54 55 var big = 'big'; 56 var mid = 'mid'; 57 58 $("body").css("font-size", $.cookie('fontsize')); 59 if ($.cookie('fontsizetype')) { 60 switch ($.cookie('fontsizetype')) { 61 case big: 62 onBigClick(); 63 break; 64 case mid: 65 onMidClick(); 66 break; 67 default: 68 onMidClick(); 69 } 70 } else { 71 onMidClick(); 72 } 73 74 $('#fonts_b').click(function() { 75 onBigClick(); 76 return false; 77 }); 78 $('#fonts_s').click(function() { 79 onMidClick(); 80 return false; 81 }); 82 function onBigClick() { 83 clear(); 84 $("#fonts_b").addClass("big_on"); 85 $("body").css("font-size", L_SIZE); 86 $.cookie("fontsize", L_SIZE, { domain: 'hoken-clinic.com', path: '/', expires: 3}); 87 $.cookie('fontsizetype', big, { domain: 'hoken-clinic.com', path: '/', expires: 3}); 88 } 89 90 function onMidClick() { 91 clear(); 92 $("#fonts_s").addClass("mid_on"); 93 $("body").css("font-size", M_SIZE); 94 $.cookie("fontsize", M_SIZE, { domain: 'hoken-clinic.com', path: '/', expires: 3}); 95 $.cookie('fontsizetype', mid ,{ domain: 'hoken-clinic.com', path: '/', expires: 3}); 96 } 97 98}); 99 100 101$(function(){ 102 var zoomScale = 1; 103 104 $("#zoom_plus").click(function(){ 105 zoomScale += 0.1; 106 setScale(zoomScale); 107 }); 108 $("#zoom_minus").click(function(){ 109 zoomScale -= 0.1; 110 setScale(zoomScale); 111 }); 112 function setScale(intScale){ 113 $("body").css({"transform":"scale("+intScale+","+intScale+")"}); 114 $("body").css({"-webkit-transform":"scale("+intScale+","+intScale+")"}); 115 $("body").css({"-moz-transform":"scale("+intScale+","+intScale+")"}); 116 $("body").css({"zoom":intScale}); 117 } 118}); 119/* 120$(function() { 121 var topHeader = $('#Header_top'); 122 $(window).scroll(function () { 123 if ($(this).scrollTop() > 498) { 124 topHeader.css({'position':'fixed','top':'0','background':'url(../../images/bg_main_ptn.gif) repeat 0 0'}); 125 } else { 126 topHeader.css({'position':'absolute','top':'478px','background':'none'}); 127 } 128 }); 129}); 130*/ 131 132$(function anker(){ 133 $(".anklnkjs a[href^=#]").click(function() { 134 var myHref= $(this).attr("href"); 135 var myPos = $(myHref).offset().top; 136 137 $("body,html").animate({scrollTop : myPos}, 300); 138 return false; 139 }); 140}); 141 142$(function SlideUpdown() { 143 $("#Gnav .navin ul li .sld").hide(); 144 $("#Gnav .navin ul li.sldbx").hover(function(){ 145 $(this).children(".sld").slideDown("fast"); 146 },function(){ 147 $(this).children(".sld").slideUp("fast"); 148 }); 149}); 150 151$(function() { 152 var topBtn = $('.com_ownerbnr'); 153 topBtn.hide(); 154 $(window).scroll(function () { 155 if ($(this).scrollTop() > 100) { 156 topBtn.fadeIn(); 157 } else { 158 topBtn.fadeOut(); 159 } 160 }); 161}); 162 163 164//ãã¼ã¸ã¹ã¯ãã¼ã« 165$(function pagetop() { 166 $('.com_pagetop a').click(function () { 167 $(this).blur(); 168 169 if (window.opera) 170 { 171 $('html').animate({ scrollTop: 0 }, 'fast'); 172 }else{ 173 $('html,body').animate({ scrollTop: 0 }, 'fast'); 174 } 175 return false;
176 }); 177}); 178$(function() { 179 $("#SPLBOX .splbox .picbox .picin .viewin ul li").click(function(){ 180 $("#SPLBOX .splbox .picbox .viewbx p").hide(); 181 var thiscls = $(this).attr("class"); 182 $(this).parents(".picin").prev(".viewbx").find("p."+thiscls).show(); 183 }); 184}); 185 186
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.