Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
だから、私は自分のサイト(html)にボタンを作りたいと思っています。ボタンをクリックすると、サイトの背景を変更できます。*.js ファイルでそれを機能させたい。それを行う方法についての提案やアイデアは大歓迎です。
HTML
<input type="button" onclick="changeBackground()" value="Change Backgorund" />
JS
function changeBackground(){ $("body").css("background","url('pathtoimage')"); }