博客设置

博客园设置页脚代码

 1 <!--点击爱心特效-->
 2 <script type="text/javascript">
 3 //需要jquery插件
 4 /* 鼠标特效 */
 5 var a_idx = 0;
 6 jQuery(document).ready(function($) {
 7     $("body").click(function(e) {
 8         var a = new Array("❤不做咸鱼!❤","❤拒绝懒惰!❤","❤想做吃货❤","❤向大佬学习❤","❤扶我起来~❤","❤come on❤","❤一直在路上~❤","❤累了~❤","❤再趴一会❤","❤66666❤","❤高兴的飞起*****❤");
 9         var $i = $("<span></span>").text(a[a_idx]);
10         a_idx = (a_idx + 1) % a.length;
11         var x = e.pageX,
12         y = e.pageY;
13         $i.css({
14             "z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
15             "top": y - 20,
16             "left": x,
17             "position": "absolute",
18             "font-weight": "bold",
19             "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"
20         });
21         $("body").append($i);
22         $i.animate({
23             "top": y - 180,
24             "opacity": 0
25         },
26         1500,
27         function() {
28             $i.remove();
29         });
30     });
31 });
32 </script>
33 <!--点击火花特效-->
34 <script src="https://files.cnblogs.com/files/monster-jian/mouse-click.js"></script>
35 <canvas width="1777" height="841" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
36 <!--看板娘-->
37 <script src="https://cdn.jsdelivr.net/gh/Fofade/cnblogsThemes/live2dw/lib/L2Dwidget.min.js"></script>
38 <script src="https://cdn.jsdelivr.net/gh/Fofade/cnblogsThemes/live2dw/lib/L2Dwidget.0.min.js"></script>
39 <script>
40     L2Dwidget.init({
41         "model": {
42             "scale": 1,
43             "hHeadPos": 0.5,
44             "vHeadPos": 0.618,
45             "jsonPath": "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json"
46         },
47         "display": {
48             "superSample": 2,
49             "width": 100,
50             "height": 220,
51             "position": "right",
52             "hOffset": 0,
53             "vOffset": -20
54         },
55         "mobile": {
56             "show": true,
57             "scale": 0.5
58         },
59         "react": {
60             "opacityDefault": 0.7,
61             "opacityOnHover": 0.2
62         }
63     });</script>
64 <div id="live2d-widget">
65     <canvas id="live2dcanvas" width="200" height="440"
66             style="position: fixed; opacity: 1; left: 0; bottom: 0; z-index: 99999; pointer-events: none;"></canvas>
67 </div>

博客园定制

/*快速推荐*/
#div_digg {
  position: fixed;
  bottom: 150px;
  right: 30px;
  border: 2px solid #ECD7B1;
  padding: 10px;
  width: 140px;
  background-color: #fff;
  border-radius: 5px 5px 5px 5px !important;
  box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
}
#Snow{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(255,255,240,0.1);
    pointer-events: none;
}

博客公告栏

<img src="//pic.cnblogs.com/avatar/1885244/20210518152604.png" alt="博客主小亮的头像" class="img_avatar" width="200px" style="border-radius:50%">
<div class="Snow">
    <canvas id="Snow"></canvas>
</div>
<script src="https://files.cnblogs.com/files/cn-suqingnian/snow.js"></script>

 

posted @ 2021-06-01 14:20  小拐  阅读(66)  评论(0)    收藏  举报