此款右键菜单及美化和本站的一样,具体效果可以参考本站。
1.新增CSS和JS
网站头部新增如下代码(Joe主题在/usr/themes/Joe/public/include.php)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cy-j/chenyu/css/chenyuyj.css" />
<link rel="stylesheet" href="https://at.alicdn.com/t/font_2611504_8nq4wp1bmb3.css" />
<script src="https://cdn.jsdelivr.net/gh/cy-j/chenyu/js/ysnino6.js"></script>
<script src="https://cdn.jsdelivr.net/gh/cy-j/chenyu/js/chenyuyj.js"></script>
<script src="https://cdn.jsdelivr.net/gh/cy-j/chenyu/js/layer/layer.js"></script>
注:
如果你的网站没有jquery.min.js
请再加一行:
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
2.正文代码
网站正文
……之间或foot文件里新增如下代码:<!-- 右键美化 -->
<div class="usercm" style="left: 199px; top: 5px; display: none;">
<ul>
<li><a href="https://www.aiyo99.com/"><i class="cyicon chenyu-rhome-fill"></i><span>首页</span></a></li>
<li><a href="javascript:void(0);" onclick="getSelect();"><i class="cyicon chenyu-fuzhi"></i><span>复制</span></a></li>
<li><a href="javascript:history.go(1);"><i class="cyicon chenyu-go"></i><span>前进</span></a></li>
<li><a href="javascript:history.go(-1);"><i class="cyicon chenyu-backward"></i><span>后退</span></a></li>
<li style="border-bottom:1px solid gray"><a href="javascript:window.location.reload();"><i class="cyicon chenyu-shuaxin"></i><span>刷新</span></a></li>
<li><a href="javascript:void(0);" onclick="baiduSearch();"><i class="cyicon chenyu-baidu"></i><span>百度</span></a></li>
<li style="border-bottom:1px solid gray"><a href="javascript:void(0);" onclick="googleSearch();"><i class="cyicon chenyu-google1"></i><span>谷歌</span></a></li>
<li><a target="_blank" href="https://www.aiyo99.com/"><i class="cyicon chenyu-gongjuxiang"></i><span>百宝箱</span></a></li>
<li><a href="https://www.aiyo99.com/"><i class="cyicon chenyu-service-Fill"></i><span>小黑</span></a></li>
</ul>
</div>
<!-- 右键美化结束 -->
{callout color=”#ef6d4d”}
转载来源: {abtn color=”#ff0d00″ href=”https://chenyu.me/1424.html” content=”醉书生”/}
{/callout}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容