Use QQ expressions in WEB projects and QQ expressions in web projects

Source: Internet
Author: User

Use QQ expressions in WEB projects and QQ expressions in web projects

First introduceJquery,Jquery. qqFace. js (download the complete package from the official website)


$ (Function () {$ ('. emotion '). qqFace ({id: 'facebox', assign: 'saytext', path: 'arclist/'// path for storing emojis}); $ (". sub_btn "). click (function () {var str = $ ("# saytext "). val (); $ ("# show" pai.html (replace_em (str);}); // check the result to replace the text display Expression function replace_em (str) {str = str. replace (/\ </g, '<'); str = str. replace (/\>/g, '>'); str = str. replace (/\ n/g, '<br/>'); str = str. replace (/\ [em _ ([0-9] *) \]/g, ' '); return str ;}


Complete


What if a large number of images are used in a web project?

If you have more images, the total size of your project will increase. In this way, backup and deployment are not very convenient and convenient.
2. When you access a page, a large number of images always make loading your page very slow.
3. The image cannot be changed at any time, so modification is also a major problem.

General text should be css style as much as possible, unless only images can be used for priority should be css
This problem also exists in the project I am working on. I am modifying it. I regret it.
Generally, no one has read a page within five seconds.

How can I create dynamic QQ expressions in pssoftware?

My PS 9.0
1. Opening an animation in the window
2. Separate the expressions one by one.
3. Create a frame in the animation option and set the number of emoticon layers.
4. There is a small black eye next to the layer. In which frame, you need to open the eye and do not need to turn it off.
5. Adjust the time options in the animation by yourself.
Finally, you must note that the stored files are in the Web format. the options are all in Chinese. You can understand them. Basically, you can save them after you confirm and confirm them. Well, that's it. The specific method depends on your expression.

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.