TAILIEUCHUNG - Wordpress 3.0 jQuery - part 29

Tham khảo tài liệu 'wordpress jquery - part 29', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | jQuery and WordPress Reference Guide noConflict mode syntax The simplest is to just use the jQuery variable in all your selection statements jQuery .selector .function You can also set up your own variable script type text javascript var jq jq document .ready function jq p .click function alert Hello world script You can even safely use the variable if you set it up correctly jQuery function jQuery only code using can safely go here p .css border ff6600 Useful selector filters for working within WordPress Remember Sometimes it s easier to exclude what you don t want in a selection set rather than select for everything you do want. Selection filter syntax Here s the basic syntax for working with selector filters jQuery .selector filter params if any .function 266 Appendix Selector filters Here are the top selector filters that you ll find most useful with WordPress not is my personal favorite Example Syntax Description not selector jQuery .post img not .pIcon . jqFn Filters out all elements matching the given selector. header jQuery .post header .jqFn Filters down to all elements that are headers such as h1 h2 h3 and so on. fiirst jQuery .post first .jqFn Filters down to the first selected element only. last jQuery .post last .jqFn Filters down to the last selected element only. even jQuery .post even .jqFn Filters down to even elements only. Note Arrays are zero-indexed Zero is considered an even number so your first item will be selected odd jQuery .post odd .jqFn Filters down to odd elements only. Note Arrays are zero-indexed Zero is considered an even number so your second item will be selected eq number jQuery .post eq 0 .jqFn Filters down to a single element by its index which again is zero-indexed. gt number jQuery .post gt 0 .jqFn Filters down to all elements with an index above the given one again this is zero-indexed. lt number jQuery .post lt 2 .jqFn Filters all elements with an index below the given one. animated jQuery .post animated .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.