cnblogs添加打赏

上图上真相

1、进入后台设置---文件 

2、上传你的支付宝和微信收款码(注意图片格式为bmp格式)

2、还是上图的位置,选择设置选项,找到博客侧边栏公告(支持HTML代码)(支持JS代码)

3、将如下代码贴进去,保存

 1 <!DOCTYPE html>
 2 <html lang="zh-CN">
 3 <head>
 4 <meta charset="utf-8" />
 5 <meta name="keywords" content="打赏" />
 6 <meta name="description" content="打赏" />
 7 <title>打赏</title>
 8 </head>
 9 <script>
10         window.tctipConfig = {
11             staticPrefix: "http://static.tctip.com",
12             buttonImageId: 5,
13             buttonTip:  "zanzhu",
14             list:{
15                 alipay: { qrimg: "https://files.cnblogs.com/files/codechange/zfb_wl.bmp"}, 
16                 weixin: { qrimg: "https://files.cnblogs.com/files/codechange/wx_wl.bmp"},
17             }
18         };
19 </script>
20 <script src="http://static.tctip.com/js/tctip.min.js"></script>
21 <body>
22 </body>
23 </html>
View Code

4、成功

posted @ 2018-03-14 15:02  秋水秋色  阅读(260)  评论(0编辑  收藏  举报