WEB2 - JavaScript

함수예고

댓글

댓글 본문
  1. chimhyangmoo
    21.01.23
  2. LeeYong
    완료
  3. David Byun
    1.21
  4. 마아앙
    21.01.18
  5. 몰댕
    21.01.15
  6. 걸어가는신사
    2021.01.14
  7. younghwani
    완료!
  8. 이현수
    2021.01.10(일)
  9. jeisyoon
    감사합니다.
  10. 장군
    방정리는 못하지만 코드 수납상자는 잘 써보겠습니다...!
  11. 서울사이버대학을다니고
    <!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>
  12. 이동훈
    function nightDayHandler(self) { ---- }
  13. 박병진
    2020.12.31 완료
  14. 샴파뉴
    2020.12.28
  15. 박병진
    오늘은 여기까지 2020.12.24
  16. 호놀률류
  17. 조성호
    2020.12.16 완료
  18. 20201210
  19. 둘기
    20.12.06 완료
  20. 20201201
  21. kkn1125
    20.11.25 완~료!
  22. Zzangbae
    20.11.24 완료
  23. 푸쿠하
    '2020.11.21 완료
  24. 멋재이
    완료
  25. Dominic
    thirteen(13) November 2020
  26. 2020.11.02.MON.
  27. 바부대지
    20.10.27 함수를 배우기 시작
  28. 웹짱
    2020.10.22 1억개 함수
  29. 문성석
    2020.10.21 완료
  30. 알파카파카
    2020/10/03
  31. 922
  32. 심심타파
    완료
  33. chapter5447
    완료하였습니다
  34. H-mechanic
    20.09.08
  35. 허우룩
    2020.09.04
  36. banaba
    8/30 함수의 효율성 극대화 : 이름 붙이고 <head>로 빼버리기

    <script>function 코드이름(self) {




    }
    </script>
  37. 난지단지
    완료!
  38. 김요한
    2020.08.20 완료!
  39. JaanMun
    2020. 08. 18 완료
  40. Jay1025
    2020.08.06 완료
  41. 장정민
    즐코즐코
  42. Jae Hwan Suh
    20.08.03 피니쉬
  43. dongmi95
    20.07.21 완료
  44. 완료!
  45. 뽀짝이
    완료
  46. rosydarling
    2020/07/09 완료
  47. 2020/07/09 완료
  48. 김혜린
    6월 23일 완료!
  49. GLORIA
    완료
  50. psyless
    20200620
graphittie 자세히 보기