クリックでbodyの背景画像を変える
![](images/1.gif)
![](images/2.gif)
![](images/3.gif)
![](images/4.gif)
HOVERでbodyの背景画像を変える
※ スマホではクリックで背景チェンジする
![](images/5.gif)
![](images/6.gif)
![](images/7.gif)
![](images/8.gif)
//クリックでbodyの背景画像を変える
<img src="Path/to/img1.png" onClick="document.body.style.backgroundImage='url(Path/to/img1.png)'">
<img src="Path/to/img2.png" onClick="document.body.style.backgroundImage='url(Path/to/img2.png)'">
//HOVERでbodyの背景画像を変える
<img src="Path/to/img1.png" onMouseOver="document.body.style.backgroundImage='url(Path/to/img1.png)'">
<img src="Path/to/img2.png" onMouseOver="document.body.style.backgroundImage='url(Path/to/img2.png)'">