网站禁用右键和F12+右键美化菜单

效果图

样式

<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/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<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>

 美化代码(放在<body></body>之间

<!-- 右键美化 -->
<div class="usercm" style="left: 199px; top: 5px; display: none;">
    <ul>
        <li><a href="https://lllgw.cn/"><i class="iconfont iconrhome-fill"></i><span>首页</span></a></li>
        <li><a href="javascript:void(0);" onclick="getSelect();"><i class="iconfont iconfuzhi"></i><span>复制</span></a></li>
        <li><a href="javascript:history.go(1);"><i class="iconfont icongo"></i><span>前进</span></a></li>
        <li><a href="javascript:history.go(-1);"><i class="iconfont iconbackward"></i><span>后退</span></a></li>
        <li style="border-bottom:1px solid gray"><a href="javascript:window.location.reload();"><i class="iconfont iconshuaxin"></i><span>刷新</span></a></li>        
        <li><a href="javascript:void(0);"  onclick="baiduSearch();"><i class="iconfont iconbaidu"></i><span>百度</span></a></li>
        <li style="border-bottom:1px solid gray"><a href="javascript:void(0);" onclick="googleSearch();"><i class="iconfont icongoogle1"></i><span>谷歌</span></a></li>
        <li><a target="_blank" href="https://lllgw.cn/"><i class="iconfont icongongjuxiang"></i><span>百宝箱</span></a></li>
        <li><a href="https://lllgw.cn/"><i class="iconfont iconservice-Fill"></i><span>关于我</span></a></li>        
        </ul>
</div>
<!-- 右键美化结束 -->

 

THE END
分享
二维码
< <上一篇
下一篇>>