跳到主文
部落格全站分類:財經政論
禁止滑鼠暗右鍵的做法<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>全面禁止鼠標右鍵、FX、Alt、Ctrl、Shift等</title> </head> <mce:script type="text/javascript"><!-- function onKeyDown() { if ((event.keyCode==116)||(window.event.ctrlKey)||(window.event.shiftKey)||(event.keyCode==122)) { event.keyCode=0; event.returnValue=false; } } // --></mce:script> <mce:script type="text/javascript"><!-- function yxl() { if(window.event.altKey) { window.event.returnValue=false; } } document.onkeydown=yxl // --></mce:script> <body bgcolor="#cccccc" text="#666666" onkeydown="onKeyDown()" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" > <div mce_tmp="1">該頁面禁止了鼠標右鍵,F5、F11、「應用程序」鍵,所有與alt、ctrl和shift有關的組合鍵</div> <div mce_tmp="1"> </div> </body> </html>
keep learning, keep moving
amy5259 發表在 痞客邦 留言(0) 人氣()
留言列表