This article from the following three aspects to explain to add mouse adsorption effects of particles in the Park blog:
A. Display effect
II. Access Request
III. Procedure
A. Display effect
In the garden of the blog page, the mouse appears adsorption particle effects, as shown:
II. Access Request
Click the blog Park [Management] → → [Settings] has been pulled down, find [blog sidebar announcement (supports HTML code) (JS application permissions)]
To [email protected] send a message, in order to apply for permission as soon as possible by mail templates as follows:
Dear blog park administrator: Does js authority can help me open, I need some simple js to solve the problem, such as a mouse click effects, code highlighting and other exterior adjustment. Thank you for your support!
III. Procedure
Click the blog Park [Management] → → [Settings] has been pulled down, find [footer Html Code ], add the following code content, save it:
<script id="c_n_script" src="https://blog-static.cnblogs.com/files/xiaokang01/js.js" color="240,230,140" opacity="1" count="75" zindex="-2">
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
} else {
}
</script>
https://blog-static.cnblogs.com/files/xiaokang01/js.js 这是添加的文件的链接 color="240,230,140" 粒子的颜色设置 opacity="1" 粒子的透明度 count="75" 粒子的个数
再返回博客园的页面, 就有鼠标粒子吸附特效了啊。
但是由于博客园的主题设置,可能只有两侧的可以点击聚集粒子,中间的部分被博客园的主题中的容器覆盖住了。可以再添加css。
点击博客园的【管理】 → 【设置】 → 找到【博客皮肤】和【页面定制css代码】,自定义博客皮肤,添加如下css代码内容, 保存即可:
body { background-color:whitesmoke; } // 修改背景颜色为半透明 #home,#sideBarMain>div,#blog-sidecolumn>div>div,.catListView{ background-color:rgba(255,255,255,0); } // 修改其他边框的颜色