$(function(){ var url = window.location.pathname; var currentSrc = $('#menu ul li a[href="'+url+'"]'); var current = currentSrc.children().attr("src").replace(/(.gif|.jpg|.png)$/, '_current'+"$1"); currentSrc.children().attr("src", current); currentSrc.children().unwrap(); }); ・var url = window.location.pathname; window.location.pathnameでサイトルート相対のカレントURLを取得 ・var currentSrc = $(‘#menu ul li a[href=