//アコーディオン// document.write(unescape('%3Cstyle type="text/css"%3Ediv.accordion div.mini_m{display: none;}%3C/style%3E')); $(function(){ $("#accordion_sp01").click(function(){ $('#accordion_sp02_in').fadeOut(); $('#accordion_sp01_in').slideToggle("fast"); }); $("#accordion_sp02").click(function(){ $('#accordion_sp01_in').fadeOut(); $('#accordion_sp02_in').slideToggle("fast"); }); $('#accordion_sp03').on('click',function(){ if($(this).hasClass('accordion_on')){ var is01 = '01'; $(this).removeClass('accordion_on'); }else{ var is01 = '02'; $(this).addClass('accordion_on'); } $(this).children('img').attr('src','images/arrow_sp'+is01+'.png') $(this).next().slideToggle("fast"); }); }); //イメージスライド// // $(function () { // $(".rslides").responsiveSlides(); // }); //rollover // $(function () { // $('a img').each(function(){ // var imgSrc = $(this).attr('src'); // //画像がonの時notクラスを付ける // if(imgSrc.match(/(.*)_on(\..*)/)){ // $(this).attr('class','not'); // } // //smartRollover // if(imgSrc.match(/(.*)_off(\..*)/)){ // var repSrc = RegExp.$1+'_on'+RegExp.$2; // $('').attr('src',repSrc); // $(this).hover(function(){ // $(this).attr('src',repSrc); // $(this).css({opacity: '1',filter: 'alpha(opacity=100)'}); // },function(){ // $(this).attr('src',imgSrc); // }); // //ロールオーバーが無い場合は、透明度80% // }else if(!$(this).hasClass('not')){ // $(this).hover(function(){ // $(this).css({ // opacity: '0.8', // filter: 'alpha(opacity=80)' // }); // },function(){ // $(this).css({ // opacity: '1', // filter: 'alpha(opacity=100)' // }); // }); // } // }); // });