JS character replacement

Source: Internet
Author: User
Maybe you don't want users to copy numbers directly, or you don't want them to automatically capture Program The obtained QQ number. You can replace the number with Chinese characters or recognized characters by other users!

VaR num1 = '000000'; var num2 = '0, 0123456789, 0123456789, 9'; var num3 = '000000'; var num4 = '0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 '; vaR num5 = '〇 (); var num6 = '〇 I ⅱ ⅲ iv v vi VII VIII IX xx '; vaR num7 = '2014 () ③ ④ ⑤ ⑦ ⑧ ⑨ '; var num8 = '〇 ⒈ ⒉ ⒌ ⒍ ⒎ ⒏ ⒐ '; vaR num9 = '(2) (3) variable execution interval'; var z1 = 'abcdefghijklmnopqrstuvwxy'; var Z2 = 'abcdefghijklmnopqrstuvwxy '; vaR Z3 = 'zookeeper zookeeper '; vaR Z4 = 'zookeeper zookeeper '; vaR month = 'monthly monthly cumulative region'; var d Ay = 'zookeeper has been installed when there are too many zookeeper instances when there are other zookeeper regions '; vaR hour = '{%}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%''; function shownum (O, num) {var strhtml = ''; num + =''; For (n = 0; n <num. length; n ++) {strhtml + = O. charat (parseint (Num. charat (N), 10);} document. write (strhtml); document. write ('<br>');} function showz (O, STR) {var strhtml = ''; For (n = 0; n <Str. length; n ++) {var CHR = Str. charat (n); var Index = z1.indexof (CHR); If (Index =-1) Index = Z2.indexof (CHR); strhtml + = (Index =-1? CHR: O. charat (INDEX);} document. write (strhtml); document. write ('<br>');} function showday (M, D, H) {var strhtml = ''; strhtml + = month. charat m-1); strhtml + = Day. charat (D-1); If (H! = NULL) {strhtml + = hour. charat (h);} document. Write (strhtml); document. Write ('<br> ');}

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.