您现在的位置:素材 > 网页特效 > 鼠标类 > 禁止右键自动链接站点
搜索
禁止右键自动链接站点
[查看演示]
<script language="JavaScript">
if (navigator.appName.indexOf("Internet Explorer") != -1)
document.onmousedown = noSourceExplorer;
function noSourceExplorer()
{if (event.button == 2 | event.button == 3)
{alert("现在正在打开 http://www.sucai86.com 首页");
location.replace("http://www.sucai86.com");}}
</script>