2026, 새로운 도약을 시작합니다.

텍스트 검색창

· 4년 전 · 2281 · 1

기존에 검색 마킹시스템에서 검색바를 추가 했습니다.

검색을 종료하고싶을때는 리프레쉬버튼을 클릭하여 페이지를 리로드 합니다. 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    <li class="searchCon"><i class="fas fa-search" style="cursor:pointer;"></i></li>
      <li class="searchBar">
      <form id="f1" name="f1" action="javascript:void()">
        <input type="text" id="t1" name="t1" style="width:60px; font-size:20px; border:1px solid #eee;">
        <input type="button" value="검색" id="search_btn" style="font-size:16px; border:1px solid #eee; background-color:pink; padding:5px; color:white; border-radius:5px; cursor:pointer;">
      </from>
      </li>
    <script>
      let searchCon = document.querySelector(".searchCon");
      let textinput = document.querySelector(".searchBar");
      let searchIcob = document.querySelector(".fa-search");
      textinput.style.display = "none";
      searchCon.onclick = function searchBar(){
        if(textinput.style.display == "none" && searchCon.className == "searchCon"){
          searchCon.className += " searchOn"
          textinput.style.display = "";
          searchIcob.className = "fas fa-sync-alt";
        } else {
          searchCon.className = "searchCon"
          textinput.style.display = "none";
          history.go(0);
        }
      }
    </script>
cs
|

댓글 1개

감사합니다!!

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

그누보드5 팁자료실

번호 제목 글쓴이 날짜 조회
공지 3년 전 조회 4,598
2741 3일 전 조회 112
2740 4일 전 조회 104
2739 1주 전 조회 209
2738 1주 전 조회 217
2737 1주 전 조회 181
2736 1주 전 조회 280
2735 3주 전 조회 281
2734 3주 전 조회 263
2733 1개월 전 조회 265
2732 1개월 전 조회 301
2731 1개월 전 조회 267
2730 1개월 전 조회 226
2729 1개월 전 조회 356
2728 1개월 전 조회 245
2727 1개월 전 조회 422
2726 1개월 전 조회 256
2725 1개월 전 조회 330
2724 1개월 전 조회 360
2723 1개월 전 조회 267
2722 1개월 전 조회 300
2721 1개월 전 조회 211
2720 2개월 전 조회 304
2719 2개월 전 조회 307
2718 2개월 전 조회 202
2717 2개월 전 조회 336
2716 2개월 전 조회 202
2715 2개월 전 조회 312
2714 2개월 전 조회 273
2713 2개월 전 조회 376
2712 2개월 전 조회 289
🐛 버그신고