jQuery(function($){ //smartRollover var imgCount = 0; var images_pre = new Array(); $('img[src*="_off."],input[src*="_off."]').each (function(){ images_pre[imgCount] = new Image(); images_pre[imgCount].src = $(this).attr("src").replace("_off.", "_on."); $(this).hover( function () { imgOn($(this)); }, function () { imgOff($(this),".active"); } ); imgCount ++; }); //変数にクッキー名を入れる var history = $.cook