Hãy đăng nhập để được xem nhiều hơn nhé
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Đầu tiên, bạn copy đoạn này vào cuối của file styles.css
- #search_suggest
- {
- position:absolute;
- background:#ffffff;
- text-align:left;
- border:1px solid #91A8B4;
- width:265px;
- top:200px;
- left:757px;
- z-index:100001;
- padding:0;
- margin:0;
- clear:left;
- }
- #search_suggest ol{
- margin:0;
- padding:0;
- display:block;
- }
- #search_suggest ol li{
- margin:0;
- padding:0;
- clear:both;
- overflow:hidden;
- float:left;
- font-size:12px;
- line-height:18px;
- padding:0 5px;
- width:255px;
- display:list-item;
- }
- #search_suggest li.selected {
- background-color:#3366CC;
- color:white;
- cursor:default;
- }
- #search_suggest li.selected span {
- color:white;
- cursor:default;
- }
- #search_suggest li.selected span {
- color:white;
- cursor:default;
- }
- #search_suggest li {
- list-style-image:none;
- list-style-position:outside;
- list-style-type:none;
- display:list-item;
- }
- .suggest-key {
- float:left;
- padding-left:5px;
- text-align:left;
- }
- .suggest-result{
- color:green;
- float:right;
- padding-right:5px;
- text-align:right;
- }
Sao chép mã
Tiếp đến bạn mở file themes/tên folder giao diện/library
1. một số trang thì phần search nằm ở file search_form.lbi và một số thì phần search nằm
file page_header.lbi .Tuy nhiên các bạn có thể tìm phần đó rất dễ, mở phần search ra và
làm theo hướng dẫn tìm
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Sao chép mã
Phần này thường nằm ở đầu tiên của mỗi file thêm vào dưới nó:
- <script src="http://danphat.com/js/suggest.js" type="text/javascript"></script>
- <div id="search_suggest" style="display:none;top:200px;left:757px;"
- onmouseover='javascript:_over();' onmouseout='javascript:_out();'></div>
Sao chép mã
Chú ý bạn có thể thay danphat.com bằng tên miền tương ứng của bạn ở thư mục cài đặt
ecshop hoặc bạn có thể giữ nguyên cấu trúc code trên.
Tìm tiếp đoạn:
- </select>
- <input name="keywords" type="text"
Sao chép mã
Thêm vào đằng sau nó
- <input name="keywords" type="text" id="keyword"
- value="{$search_keywords|escape}" onkeyup="keyupdeal(event,this.value);"
- onkeydown="keydowndeal(event);" onclick="keyupdeal(event,this.value);"
- onblur="closediv();" autocomplete="off" style="vertical-align:top;"/>
Sao chép mã
Cuối cùng là bạn tải file sau đây về giải nén, tải lên thư mục cài đặt ecshop tương ứng
http://www.mediafire.com/downloa ... ocua.com-search.rar
|
|