WEB2 - JavaScript

함수예고

댓글

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

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




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