728x90 300x250 SMALL javaScript/JS Examples47 간단한 갤러리 함수로 만들기 간단한 갤러리 함수로 만들기 // 이미지 목록을 담을 변수 var $images = null; $(document).ready(function(){ // 이미지 찾기 $images = $("#Gallery1 img"); // 이미지 배열 하기 showGallery(5,150,150); }); //이미지 배열하기 function showGallery(count,width,height){ // 이미지 개수 구하기. var length = $images.length; // 이미지 배열하기. for(var i=0;i 2019. 4. 17. 사칙연산 계산기 첫번째 calculator 사칙연산 계산기보다 더 간편하게 만들수 있다. 2019. 4. 11. 모바일용 메뉴 :: 좌우 슬라이드 https://www.w3schools.com/code/tryit.asp?filename=G2IAQFL94ZH6 Tryit Editor v3.6 Save to Google Drive If you have a Google account, you can save this code to your Google Drive. Google will ask you to confirm Google Drive access. Save file as: Save file www.w3schools.com × About Services Clients Contact Animated Sidenav Example Click on the element below to open the side navigation menu. ☰ open 매.. 2019. 3. 29. 입력받은 값 더하기및 특정 단어에서 빠져나오기 12345678910111213141516 var result = 0; var i = 1; while (true) { var value = window.prompt(i + "번째 입력 "); if (value == "end") { alert("입력이 종료 되어습니다."); break; } result += parseInt(value); document.write("현재 합은 = " + result, " "); } window.prompt()를 이용해 값을 입력받을 때 입력받는 횟수가 출력되어야 한다.입력값이 end이면 alert()을 이용해 "입력이 종료되었습니다"메시지 띄우고종료 end가 아닌 경우 입력받은 값의 합을 document.write()를 이용해 화면에 출력한다. 2019. 3. 22. 이전 1 ··· 4 5 6 7 8 9 10 ··· 12 다음 728x90 반응형 LIST