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.