Summary of common JS Code instances page 1/2

Source: Internet
Author: User

1. the keyboard arrow keys listen to events and prohibit copying operations
<Head> </pead> <body leftmargin = "0" oncopy = nocopy ()> prohibit copying </body>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
The jquery table operation instance was originally intended to be added to the message, but the javaeye administrator was inexplicably hiding my post. The post was hidden by the judges in less than a minute. I really admire it, in other words, the hidden box operation was rated as a hidden post by everyone. In the morning, I posted a post on the facybox of lightboxhuanchengjquery of prototype, who knows, the judges can directly hide the post. It is difficult to hide the post without sending the post. The post will be hidden !!!!
Copy codeThe Code is as follows:
// Rendering of tables in Thai climate
BEUI. E. thailand_QH = function (){
// The first column in The tbody is left, and the numbers 3, 5, and 7 are bold.
$ ('Table # thailand-qh tbody tr'). each (function (){
$ ('Td: even', this).css ('font-weight', 'bold ');
$ ('Td: eq(0)', this).css ({'text-align ': 'left', 'font-weight': 'normal '});
});
$ ('Table # thailand-qh tbody tr: odd'). addClass ('thailand-qh-tbody-tr-odd ');
$ ('Table # thailand-qh tbody tr: even'). addClass ('thailand-qh-tbody-tr-even ');
};


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.