Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
yiler-interactivve-buttons-test [2023/01/29 20:41] – yiler.huang | yiler-interactivve-buttons-test [2023/01/29 21:07] (current) – yiler.huang | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | These are the buttons I made for the home page, the interaction only works on computers. | ||
+ | |||
+ | Try hovwering your cursor around the buttons and see what happens. | ||
+ | |||
===== Some buttons here ===== | ===== Some buttons here ===== | ||
Line 6: | Line 10: | ||
< | < | ||
< | < | ||
- | html{ | ||
- | background-color:# | ||
| | ||
width: auto; | width: auto; | ||
Line 561: | Line 563: | ||
let br = document.createElement(" | let br = document.createElement(" | ||
- | document.getElementById(" | + | let whereButtonsGo = document.getElementById(" |
+ | |||
+ | whereButtonsGo.appendChild(br) | ||
- | buttonsArray.forEach(i => document.getElementById(" | + | buttonsArray.forEach(i => whereButtonsGo.appendChild(i)) |