四个 WordPress 特效

杨承翰 246 0

开篇

春天来了,不知道你发现 博客YCH 的变化没有[aru_17](废话)。

没错,博客YCH 出现了 樱花飘落特效、点击特效。合着 博客YCH 早就有了的 评论冒光特效,以及与樱花飘落特效一起的 雪花飘落特效 一并给到大家。

PS:由于 博客YCH 的 CPU 资源占用过多,在此博客中未演示点击特效。

樱花飘落特效 & 雪花飘落特效

这个不需要多说,在 footer.php 最后加入:

<script src="https://blogych.top/flower.js"></script>

接着就可以享受“网络春光”了[aru_42]。

温馨提示

可以点击“运行”查看效果哦!

雪花飘落同理,使用以下代码即可。

<script src="https://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script><script src="https://blogych.top/snowfall.js"></script>

这篇博客的页面演示的就是雪花飘落特效(我也不知道为什么大家都叫它雪花 ……)[aru_49]

点击特效

点击特效哪里都能找得到,如今也非常流行。因为现在是春天,所以提供给大家带有春天成语的特效[aru_50]:

<script src="https://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script>
// 请插入到 footer.php 中 <?php wp_footer(); ?> 的前一行
var _0x36dc = [
    'wp9hwqoEeQ==',
    '6aKR5ZG65pW+5Liw',
    'UjnCtGo=',
    '5rm65ZiQ5pir6Im7',
    'VMKCI1s=',
    '55ud6Iic6b+Q5pSp',
    '5pio5oWM55uu54aP',
    '5rOM5rCv5LiI5YeY',
    'GzfDtcOX',
    'TFbDq8KcFA==',
    'w4NtDkTDlcKEw5lN',
    '5puE5pmh6Im35b6z',
    'UWt1w4Md',
    'V8OzU8KkIMOr',
    'f1EtPGzDvHc=',
    '5Yap5Y6g5pis5pyR',
    '6buc6K+z6Iqy6aas',
    'w7FtUMKiVQ==',
    'FTzCjQ==',
    'HcOJw6vDisKVZsKL',
    '5LmX54ut5aSE6IuD',
    'w7NxScKkUA0=',
    '55aL5py65Ymg5Yic',
    'MsOrbXU='
];
(function (_0x374ea5, _0x36dcb5) {
    var _0x44170e = function (_0x3361b8) {
        while (--_0x3361b8) {
            _0x374ea5['push'](_0x374ea5['shift']());
        }
    };
    _0x44170e(++_0x36dcb5);
}(_0x36dc, 0x14c));
var _0x4417 = function (_0x374ea5, _0x36dcb5) {
    _0x374ea5 = _0x374ea5 - 0x0;
    var _0x44170e = _0x36dc[_0x374ea5];
    if (_0x4417['DrycIh'] === undefined) {
        (function () {
            var _0x2b04e1;
            try {
                var _0x114f3b = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');');
                _0x2b04e1 = _0x114f3b();
            } catch (_0x14f48e) {
                _0x2b04e1 = window;
            }
            var _0x492305 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
            _0x2b04e1['atob'] || (_0x2b04e1['atob'] = function (_0x30dcab) {
                var _0x182041 = String(_0x30dcab)['replace'](/=+$/, '');
                var _0x723c75 = '';
                for (var _0x231686 = 0x0, _0x22f359, _0x1b27ac, _0x438471 = 0x0; _0x1b27ac = _0x182041['charAt'](_0x438471++); ~_0x1b27ac && (_0x22f359 = _0x231686 % 0x4 ? _0x22f359 * 0x40 + _0x1b27ac : _0x1b27ac, _0x231686++ % 0x4) ? _0x723c75 += String['fromCharCode'](0xff & _0x22f359 >> (-0x2 * _0x231686 & 0x6)) : 0x0) {
                    _0x1b27ac = _0x492305['indexOf'](_0x1b27ac);
                }
                return _0x723c75;
            });
        }());
        var _0x15d6ca = function (_0x561023, _0x965f0c) {
            var _0x47076e = [], _0xe5cddc = 0x0, _0xb6671d, _0x206f21 = '', _0x38297d = '';
            _0x561023 = atob(_0x561023);
            for (var _0x42babf = 0x0, _0x583e7b = _0x561023['length']; _0x42babf < _0x583e7b; _0x42babf++) {
                _0x38297d += '%' + ('00' + _0x561023['charCodeAt'](_0x42babf)['toString'](0x10))['slice'](-0x2);
            }
            _0x561023 = decodeURIComponent(_0x38297d);
            var _0x21347e;
            for (_0x21347e = 0x0; _0x21347e < 0x100; _0x21347e++) {
                _0x47076e[_0x21347e] = _0x21347e;
            }
            for (_0x21347e = 0x0; _0x21347e < 0x100; _0x21347e++) {
                _0xe5cddc = (_0xe5cddc + _0x47076e[_0x21347e] + _0x965f0c['charCodeAt'](_0x21347e % _0x965f0c['length'])) % 0x100;
                _0xb6671d = _0x47076e[_0x21347e];
                _0x47076e[_0x21347e] = _0x47076e[_0xe5cddc];
                _0x47076e[_0xe5cddc] = _0xb6671d;
            }
            _0x21347e = 0x0;
            _0xe5cddc = 0x0;
            for (var _0x5885de = 0x0; _0x5885de < _0x561023['length']; _0x5885de++) {
                _0x21347e = (_0x21347e + 0x1) % 0x100;
                _0xe5cddc = (_0xe5cddc + _0x47076e[_0x21347e]) % 0x100;
                _0xb6671d = _0x47076e[_0x21347e];
                _0x47076e[_0x21347e] = _0x47076e[_0xe5cddc];
                _0x47076e[_0xe5cddc] = _0xb6671d;
                _0x206f21 += String['fromCharCode'](_0x561023['charCodeAt'](_0x5885de) ^ _0x47076e[(_0x47076e[_0x21347e] + _0x47076e[_0xe5cddc]) % 0x100]);
            }
            return _0x206f21;
        };
        _0x4417['VFzeJq'] = _0x15d6ca;
        _0x4417['YimERl'] = {};
        _0x4417['DrycIh'] = !![];
    }
    var _0x3361b8 = _0x4417['YimERl'][_0x374ea5];
    if (_0x3361b8 === undefined) {
        if (_0x4417['DajsAz'] === undefined) {
            _0x4417['DajsAz'] = !![];
        }
        _0x44170e = _0x4417['VFzeJq'](_0x44170e, _0x36dcb5);
        _0x4417['YimERl'][_0x374ea5] = _0x44170e;
    } else {
        _0x44170e = _0x3361b8;
    }
    return _0x44170e;
};
var a_idx = 0x0;
jQuery(document)[_0x4417('0xd', '7ckZ')](function (_0x3b84c1) {
    _0x3b84c1(_0x4417('0xc', '^)UF'))[_0x4417('0x15', 'vKRF')](function (_0x1d704a) {
        var _0x3c8fd9 = new Array(_0x4417('0xf', 'E]]y'), _0x4417('0x9', '12Z['), _0x4417('0x14', 'Sw#q'), _0x4417('0x0', 'rS]^'), _0x4417('0x7', 'wjBE'), _0x4417('0xb', 'sWV6'), _0x4417('0xa', '!aq9'), _0x4417('0x2', '#VDA'), '雨后春笋', '艳阳高照', _0x4417('0x13', 'sWV6'), _0x4417('0x5', 'yC@o'));
        var _0x1a1f6b = _0x3b84c1(_0x4417('0x12', '^yUL'))[_0x4417('0x6', 'AfR4')](_0x3c8fd9[a_idx]);
        a_idx = (a_idx + 0x1) % _0x3c8fd9[_0x4417('0x11', '1[Vy')];
        var _0x39b913 = _0x1d704a[_0x4417('0x4', 'MLn4')], _0x4dc293 = _0x1d704a[_0x4417('0x10', 'wmT7')];
        _0x1a1f6b[_0x4417('0x16', '7D2#')]({
            'z-index': 0x25179157c93ec800000000000000000000000000000000000000000000,
            'top': _0x4dc293 - 0x14,
            'left': _0x39b913,
            'position': _0x4417('0xe', '0VfZ'),
            'font-weight': _0x4417('0x8', 'Y0C%'),
            'color': '#ff6651'
        });
        _0x3b84c1(_0x4417('0x3', 'rS]^'))[_0x4417('0x1', 'vKRF')](_0x1a1f6b);
        _0x1a1f6b[_0x4417('0x17', '4NB2')]({
            'top': _0x4dc293 - 0xb4,
            'opacity': 0x0
        }, 0x5dc, function () {
            _0x1a1f6b['remove']();
        });
    });
});
</script>
温馨提示

点击“运行”之后点击鼠标试试!将其放置于 <?php wp_footer(); ?> 前即可使用!

评论冒光特效

评论冒光特效来自 孟坤博客 ,方便大家也直接提供代码[aru_48]:

<?php if (!wp_is_mobile()): ?>  
<script src="https://blogych.top/active-power-mode.js"></script>  
<script>  
POWERMODE.colorful = true;  // 冒光特效  
POWERMODE.shake = false;    // 抖动特效  
document.body.addEventListener('input', POWERMODE); // 为所有 input 标签都加上特效  
</script>  
<?php endif; ?> 

注意!这个方法禁用了 手机/平板,如果想要开放,请自行删除 if 语句! [aru_60]

后记

后来觉得鸡肋,就取消了这几个特效 …… [aru_11]

发表评论 取消回复
表情 图片 链接 代码

分享