jQueryでbackground-imageを設定するサンプル
コード下記:
$(document).ready(function () {
$(“#Overview").css(“background-image","url(./img/ChangFaStartnews24.png)");
$(“#Overview div").show();
$(“#tab li").hover(function () {
$(“#tab li").css(“background-image","url(./img/btnGray.png)");
$(“#tab ul div").hide();
$(this).css(“background-image","url(./img/ChangFaStartnews24.png)");
$(this).children('div’).show();
});
})