WEB2 - JavaScript

함수예고

댓글

댓글 본문
  1. yogg
    감삽니다!!!!
  2. 감사합니다
  3. 요모
    2021-03-29
  4. 김우중
    감사합니다
  5. 단디
    완료
  6. 뚜따띠또따
    21.03.24 완료!
  7. 봉가리봉봉
    감사합니다
  8. 졸대
    완료!
  9. 20210312 완료
  10. gkalsdlf
    완료!
  11. rose_lex
    완료
  12. 낭낭
    2021.03.07 완료
  13. 2021.03.05 완료
  14. 진돌
    2021.02.26 완료
  15. 서준
    완료!
  16. Dongwon Park
    완료
  17. 함수는 수납상자래요~
  18. 송민서
    내 성공시대 시작됬다/.
    대화보기
    • 완료
    • Yohanesty
      출석
    • 임찬혁
      완료
    • hanel_
      21.1.25
    • 푸른벚꽃
      21.1.25
    • chimhyangmoo
      21.01.23
    • LeeYong
      완료
    • David Byun
      1.21
    • 마아앙
      21.01.18
    • 몰댕
      21.01.15
    • 걸어가는신사
      2021.01.14
    • younghwani
      완료!
    • 이현수
      2021.01.10(일)
    • jeisyoon
      감사합니다.
    • 장군
      방정리는 못하지만 코드 수납상자는 잘 써보겠습니다...!
    • 서울사이버대학을다니고
      <!doctype html>
      <html>
      <head>
      <script>
      function nightDayHandler(self){
      var target = document.querySelector('body');
      if(self.value === 'night'){
      target.style.backgroundColor = 'black';
      target.style.color = 'white';
      self.value = 'day';

      var alist = document.querySelectorAll('a');
      var i = 0;
      while(i < alist.length){
      alist[i].style.color = 'powderblue';
      i = i + 1;
      }
      } else {
      target.style.backgroundColor = 'white';
      target.style.color = 'black';
      self.value = 'night';

      var alist = document.querySelectorAll('a');
      var i = 0;
      while(i < alist.length){
      alist[i].style.color = 'blue';
      i = i + 1;
      }
      }
      }
      </script>
      </head>
      <body>
      <h1><a href="index.html">WEB</a></h1>
      <input id="night_day" type="button" value="night" onclick="
      nightDayHandler(this);
      ">

      <ol>
      <li><a href="1.html">HTML</a></li>
      <li><a href="2.html">CSS</a></li>
      <li><a href="3.html">JavaScript</a></li>
      </ol>
      <h2>JavaScript</h2>
      <p>
      JavaScript (/ˈdʒɑːvəˌskrɪpt/[6]), often abbreviated as JS, is a high-level, dynamic, weakly typed, prototype-based, multi-paradigm, and interpreted programming language. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production. It is used to make webpages interactive and provide online programs, including video games. The majority of websites employ it, and all modern web browsers support it without the need for plug-ins by means of a built-in JavaScript engine. Each of the many JavaScript engines represent a different implementation of JavaScript, all based on the ECMAScript specification, with some engines not supporting the spec fully, and with many engines supporting additional features beyond ECMA.
      </p>

      </body>
      </html>
    • 이동훈
      function nightDayHandler(self) { ---- }
    • 박병진
      2020.12.31 완료
    • 샴파뉴
      2020.12.28
    • 박병진
      오늘은 여기까지 2020.12.24
    • 호놀률류
    • 조성호
      2020.12.16 완료
    • 20201210
    • 둘기
      20.12.06 완료
    • 20201201
    • kkn1125
      20.11.25 완~료!
    • Zzangbae
      20.11.24 완료
    • 푸쿠하
      '2020.11.21 완료
    • 멋재이
      완료
    • Dominic
      thirteen(13) November 2020
    • 2020.11.02.MON.
    • 바부대지
      20.10.27 함수를 배우기 시작
    graphittie 자세히 보기