介绍
  • 人体时钟特效

    1
    <script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.js"></script>
    1
    <script charset="Shift_JIS" src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.js"></script>

出处:https://blog.csdn.net/itmyhome1990/article/details/39028013

应用方法
  • 为了分类,方便下一次寻找,在主题目录下的source中新建文件夹 swf,将下载好的文件放入

  • 添加time.ejs文件 ..\themes\Chic\layout\_partial\time.ejs

    1
    2
    3
    4
    5
    <div style="position: fixed;top: 0 px;width: 160px;height: 70px;text-align:center;left: 84%;top: 71%;">
    <center>
    <embed wmode="transparent" src="/blog/swf/clock.swf" quality="high" bgcolor="#ffffff" width="160" height="70" name="honehoneclock" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
    </center>
    </div>

    注:里面属性皆为设置样式

  • 修改页面显示配置文件 ..\themes\Chic\layout\layout.ejs

    1
    <div>    <%- partial('_partial/time',{cache: true}) %></div>
  • 重新部署hexo