2018风格 更新消息通知代码-Discuz教程下载

2018风格 更新消息通知代码

开通本站Svip会员,全站资源免费下
7.jpg 首先在template\simple_white\common\extend_common.CSS  这个文件
找到
  1. .pm .c{background: #f8f8f8;}
复制代码

在下面加
  1. /* 通知 */
  2. .notify{position:absolute;top:30px;right:11px}
  3. .notify .heartbit{position:absolute;top:-20px;right:-16px;height:25px;width:25px;z-index:10;border:4px solid;border-color:#ff0001;border-radius:70px;animation:heartbit 1s ease-out;-moz-animation:heartbit 1s ease-out;-moz-animation-iteration-count:infinite;-o-animation:heartbit 1s ease-out;-o-animation-iteration-count:infinite;-webkit-animation:heartbit 1s ease-out;-ms-animation:heartbit 1s ease-out;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}
  4. .notify .point{width:6px;height:6px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background-color:#f90000;position:absolute;right:-3px;top:-7px;z-index:100;}
  5. @-moz-keyframes heartbit{0%{-moz-transform:scale(0);opacity:0}
  6. 25%{-moz-transform:scale(0.1);opacity:.1}
  7. 50%{-moz-transform:scale(0.5);opacity:.3}
  8. 75%{-moz-transform:scale(0.8);opacity:.5}
  9. 100%{-moz-transform:scale(1);opacity:0}}
  10. @-webkit-keyframes heartbit{0%{-webkit-transform:scale(0);opacity:0}
  11. 25%{-webkit-transform:scale(0.1);opacity:.1}
  12. 50%{-webkit-transform:scale(0.5);opacity:.3}
  13. 75%{-webkit-transform:scale(0.8);opacity:.5}
  14. 100%{-webkit-transform:scale(1);opacity:0}}
  15. @-ms-keyframes heartbit{0%{-ms-transform:scale(0);opacity:0}
  16. 25%{-ms-transform:scale(0.1);opacity:.1}
  17. 50%{-ms-transform:scale(0.5);opacity:.3}
  18. 75%{-ms-transform:scale(0.8);opacity:.5}
  19. 100%{-ms-transform:scale(1);opacity:0}}
复制代码
然后找到template\simple_white\common\header.php
找到这段代码
  1. <a href="home.php?mod=space&do=pm" id="pms" class="fa fa-envelope Button PushNotifications-icon AppHeader-notifications Button--plain" title="消息">{if $_G['member'][newpm]>0}<em>{$_G['member'][newpm]}</em>{/if}</a>
复制代码
把下面的
  1. <a href="home.php?mod=space&do=notice&view=mypost" id="notices" class="fa fa-bell Button Messages-icon AppHeader-messages Button--plain" title="提醒">{if $_G['member'][newprompt]>0}<em>{$_G['member'][newprompt]}</em>{/if}</a>
复制代码
替换为
  1. <a href="home.php?mod=space&do=notice&view=mypost" id="notices" class="fa fa-bell Button Messages-icon AppHeader-messages Button--plain" title="提醒"><div style="position: absolute;top: -20px;right: -11px;"><div class="notify">{if $_G['member'][newprompt]>0}<span class="heartbit"></span><span class="point"></span>{/if}</div></div></a>
复制代码
上面的代码中的   -20px;right: -11px

是定的位置

全部评论 0

您需要登录后才可以回帖 立即登录
登录
0
0
0
返回顶部