jsp中js實現點擊按鈕更改背景圖片

<script> function mychange(num){ document.getElementById("div1").style.backgroundImage="url("+num+".jpg)"; document.getElementById("div2").style.backgroundImage="url("+num+".jpg)"; }</script></head>
相關文章
相關標籤/搜索