자바스크립트에서 날씨에따라 배경과 이미지변경
안녕하세요 js랑 html 공부중인 학생입니다.
자바스크립트에서 날씨에따라 웹 배경과 날씨이미지를 변경하고 싶은데 너무 어렵습니다....
날씨 api 같은경우에는 http://ip-api.com/json 여기에서 받아와서
<!DOCTYPE HTML>
<html>
<meta charset="utf-8" />
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="main.js"></script>
<link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet">
</head>
<body>
<!-- 날씨~~~~ -->
<h2> 현재 온도: <section id="temperature-celcius"></section></h2>
<h2>습도: <section id='humidity'></section></h2>
<h2>전체: <section id='overall'></section></h2>
<!-- -->
</body>
</html>
이렇게 까지 제작을 했는데 배경이랑 날씨 이미지 변경하는 방법이 있을까요?ㅠㅠ
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인