鎖左、右鍵滑鼠功能
製造滑鼠故障假象滑鼠不僅右鍵無法使用,就連左鍵也失去複製的功能了。
可有效防止別人複製網頁或是觀看你的網頁原始碼。
oncontextmenu=window.event.returnValue=false onselectstart=event.returnValue=false
請將下列語法複製於 <body> 裡的位置。
使其變成↓︰<body oncontextmenu=window.event.returnValue=false onselectstart=event.returnValue=false>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>鎖左右鍵語法</title>
</head>
<body oncontextmenu=window.event.returnValue=false onselectstart=event.returnValue=false>
</body>
</html>
頁:
[1]