Convert jquery. qqFace. js expressions into WeChat's QR code,

Source: Internet
Author: User

Convert jquery. qqFace. js emoticon into a QR code,

Jquery. qqFace. js usage

Reference

<Script src = "~ /Content/qqFace/js/jquery. qqFace. js? V = 3 "> </script>
<Script src = "~ /Content/qqFace/js/jquery-browser.js "> </script>

Html

<Div>

I combined the QR codes by myself in the order of the above expressions. Do some of them not find them? They are expressed in text directly. What they receive can also be converted into an emoticon.

Private string emoij = "/::);/::~; /: B;/: |;/: <;/: $;/: X;/: Z ;/::'(;/:: -|;/: @;/: P;/: D;/: O;/: :(;/:-B;/: Q ;/:: t;/:, @ P;/:, @-D;/: d;/:, @ o;/: g;/: | -);/: :!; /: L;/:>;/:, @;/:, @ f;/:-S ;/:?; /:, @ X;/:, @;/: 8 ;/:,@!; /: Xx;/: bye;/: wipe;/: dig;/: &-(;/: B-);/: <@;/: @> ;/: :-O;/:>-|;/: P-(;/: '|;/: X-);/: *;/: @ x ;/: 8 *; [hug]; [moon]; [Sun]; [bomb];/:!; /: Pd;/: pig;/: <W>;/: coffee;/: eat;/: heart; [strong]; [Weak]; [handshake]; [victory]; [hug]; [seduce]; [OK]; [NO];/: rose;/: fade;/: showlove; [skip]; [circle] ";

 

Var emoijarray = emoij. Split (';');
Int len = emoijarray. Length;
For (int I = 0; I <len; I ++)
{
String str = string. format (" ",'"', I + 1 ,'"','"','"');
If (xmlstr. contains (str) // check whether the text message sent Contains emoticon tags. If there are tags, replace them with the corresponding tokens. Maybe you can better replace them, this is just a loop to find matching replacement
{
Xmlstr = xmlstr. Replace (str, emoijarray [I]);
}
}

This is where you will receive your facial expression.

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.