목록2024/04/29 (1)
기초공사 (html,css,javascript)
노드 배열로 작성 및 삭제 - Array / node / parentNode / remove
// /*실습 : 웹문서를 열었을때,시간이 12시 이전이면 images/morning.jpg시간이 12시 이후이면 images/afternoon.jpg을 표시하려고 한다. 현재시간을 알아내려면 알아내는 방법은 아래 제공 : const today = new Date(); // 현재 날짜와 시간 정보를 담은 today 객체const hrs = today.getHours() // 현재 시간중 시 정보를 가져온다.1. 현재 시간에 따른 이미지를 다르게 하려면 어떻게 해야할까? -- if(hrs > 12) images/afternoon.jpg images/morning.jpg2. img 요소를 만들고 이미지 파일 경로를 지정하려면 어떻게 해야할까? --let imgE = document.c..
academy/JavaScript
2024. 4. 29. 20:25