Park added micro blog appreciation letter code at the micro-channel function built-in browser to open

I opened the appreciation of the blog, look to the right suspension [a reward], it is easy to get, end of the article there is a link.

In addition, when you open the micro letter, the text of the bottom of the blog to increase micro-channel appreciates the code , when micro-channel built-in browser is open, press and picture identification, can be directly appreciated.

It's my own way, not stories for reference, are original, reproduced please specify the source.

1, the opening of JS Park blog authority

Opening the way: my blog - management - setting, pull down an application JS rights, fill in the following reasons, for general application by the next day.

2, upload appreciation micro letter code

Put your appreciation of code to your computer, change it or .gif suffix .dmp

Then in my blog - Management - File, select the appreciation of just upload code, click on the file after the upload will preview the appreciation code, remember this document address in the address bar

3, add a script

In my blog - Management - Settings - Add the following code footer HTML code: where the value of the src attribute of the img tag read address of the picture you just saw

<script> 
function isWeiXin() {
        var _userAgent = window.navigator.userAgent.toLowerCase();
        if (_userAgent .match(/MicroMessenger/i) == 'micromessenger') {
            $("#cnblogs_post_body").append("<img class='wxzs' src='https://blog-static.cnblogs.com/files/ibigboy/wxzanshang.gif'>");
        }
  </script>

4, add style

Add custom CSS styles in the page code. I set the width and height of half the original, open micro-channel in the right size.

.wxzs{
    width: 237.5px;
    height: 239.5px;
    margin: 0 auto;
    display: inherit;
}

5. Verify

His blog post links sent to your phone micro letter

After opening at the end of the text, it will show your appreciation code, press and identifiable.

Bowen reprint please indicate in detail the source, thank you!

This blog also opened a micro-channel appreciation, appreciation and Alipay Alipay red envelope function, see the right side of [a reward]
This function is a reference blog: https://www.cnblogs.com/flyfire-cn/p/10397896.html

Guess you like

Origin www.cnblogs.com/ibigboy/p/10936231.html