½ûÖ¹ÓÒ¼ü´úÂë¶øÇÒ½ûÖ¹²é¿´-Ô´Îļþ

µ¼Óï ½ûÖ¹Êó±êÓÒ¼ü ½ûÖ¹²é¿´Ô´Îļþ ½ûÖ¹ÓÒ¼ü¸´ÖÆ ´úÂë´óÈ«1 oncontextmenu="window event returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü£¬ÆäʵÊǽûÖ¹¿ì½Ý²Ëµ¥£¬ÒòΪ²»¹âÓÒ¼ü¿ÉÒÔµ¯³öÕâ¸ö²Ëµ¥£¬¼üÅÌÉÏ¿Õ¸ñ¼üÓұߵÄwind





½ûÖ¹Êó±êÓÒ¼ü ½ûÖ¹²é¿´Ô´Îļþ ½ûÖ¹ÓÒ¼ü¸´ÖÆ ´úÂë´óÈ«
 
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü£¬
ÆäʵÊǽûÖ¹¿ì½Ý²Ëµ¥£¬ÒòΪ²»¹âÓÒ¼ü¿ÉÒÔµ¯³öÕâ¸ö²Ëµ¥£¬
¼üÅÌÉÏ¿Õ¸ñ¼üÓұߵÄwindows¼üÒ²¿ÉÒÔ¼¤»îÕâ¸ö¿ì½Ý²Ëµ¥ 
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable 
2. <body onselectstart="return false"> ½ûֹѡȡ¡¢·ÀÖ¹¸´ÖÆ 
3. onpaste="return false" ½ûÖ¹Õ³Ìù 
4. oncopy="return false;" oncut="return false;" ½ûÖ¹¸´ÖƺͼôÇÐ
5. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
 
ÓÃjavascript ½ûÖ¹ÓÒ¼ü,½ûÖ¹¸´ÖÆ,½ûÖ¹Õ³Ìù
 
ÓÐʱ×Ô¼ºÐÁ¿à°ëÌì×öµÄÍøÒ³£¬ÓÈÆäÊÇһЩjavascriptÌØЧ£¬ºÜÈÝÒ×±»ÈËÀûÓò鿴ԴÎļþ¶ø¸´ÖÆ¡£
ÄÇôÈçºÎ²ÅÄÜ·ÀÖ¹±»È˲鿴Դ´úÂëÄØ£¿ÎÒÃÇ¿ÉÒÔÀûÓÃevent.buttonÌØÐÔÀ´×öµ½¡£
ϱíÊÇevent.buttonÊôÐԵĿÉÄÜÈ¡Öµ¼°º¬Ò壺
0 û°´¼ü
1 °´×ó¼ü
2 °´ÓÒ¼ü
3 °´×óºÍÓÒ¼ü
4 °´Öмä¼ü
5 °´×óºÍÖмä¼ü
6 °´ÓÒºÍÖмä¼ü
7 °´ËùÓеļü
²ÎÕÕÉÏ±í£¬ÎÒÃÇ¿ÉÒÔÔÚ<body>ºÍ</body>Ö®¼ä¼ÓÈëÈçÏÂÓï¾ä£º
<Script Langvage=javascript>
function Click(){
if (event.button!=1){alert('°æȨËùÓÐ(C)2014¡¡°®Ë¼×ÊÔ´Íø');
}}
document.onmousedown=Click;
</Script>
ÕâÑùÔÚä¯ÀÀÍøҳʱ³ýµ¥»÷Êó±ê×ó¼üÍ⣬ÆäËûÈκÎÐÎʽµÄÊó±êµã»÷»ò×éºÏµã»÷£¬
¶¼½«³öÏÖ“°æȨËùÓÐ(C)2014¡¡°®Ë¼×ÊÔ´Íø”µÄÌáʾ¿ò£¬¶ø²»ÊdzöÏÖ¿ì½Ý²Ëµ¥£¬
´Ó¶ø±ÜÃâ±»È˲鿴ԴÎļþ´úÂë¡£
Èç¹ûʹevent.button=2£¬Êµ¼ÊÉÏËü½öÄÜÏÞÖƵã»÷Êó±êÓÒ¼üÇé¿ö£¬ÆäËûµã»÷·½Ê½£¬
Èç°´×óÓÒ¼ü¡¢°´×óºÍÖмä¼ü¡¢°´Öмä¼üµÈ¾Í²»ÄÜÏÞÖÆ£¬µ±ÕâЩ·½Ê½µÄµã»÷·¢Éúʱ£¬
³öÏֵľÍÊÇ¿ì½Ý²Ëµ¥£¬´Ó¶ø¿ÉÒԲ鿴ԴÎļþ¡£     
 
×¢Ò⣺°Ñbody¸ÄΪÈçÏ´úÂ룺<body oncontextmenu="window.event.returnValue=false">£¬
ÆäÖÐValueÖеÄVÒ»¶¨Òª´óд£¡£¡
 
Ò³Ãæ½ûÓÃÊó±êÓÒ¼ü´úÂë
 
¿ÉÒÔ°ÑÏÂÃæ´úÂë¼ÓÈëµ½Ò³ÃæÊʵ±Î»Öá£
LeadBBSÂÛ̳ӦÓÃÏÂÃæ´úÂëʱ£¬¿ÉÒÔ´ò¿ª£ºinc/Board_Popfun.aspÎļþ
²éÕÒ£º
<script language = "JavaScript" src = "<%=DEF_BBS_HomeUrl%>inc/JF.js" 
type="text/javascript"></script>
ÏÂÃæ¼ÓÈë´úÂë¡£
 
<script language=javascript>
function openScript(url, width, height,left,top,r){
      var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',
left=' +left+ ',top='+top+',resizable=no,scrollbars='+r+',menubar=no,status=no' );
}
 
//ÒÔÏÂΪ½ûÖ¹Êó±êÓÒ¼üµÄ´úÂ룬²»Ïë½ûÖ¹µÄ¿ÉÒÔɾ³ý
<!--
 
if (window.Event) 
document.captureEvents(Event.MOUSEUP);
 
function nocontextmenu() 
{
event.cancelBubble = true
event.returnValue = false;
 
return false;
}
 
function norightclick(e) 
{
if (window.Event) 
{
if (e.which == 2 || e.which == 3)
return false;
}
else
{if (event.button == 2 || event.button == 3) {alert("¡¾Aseoe¡¿»¶Ó­Äã"); } }
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
 
}
 
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
 
ͼƬ½ûÓÃÊó±êÓÒ¼ü´úÂë
 
Ó¦Ó÷½·¨Í¬ÉÏ¡£
 
<script language="JavaScript1.2">
var clickmessage="±¾Õ¾Í¼Æ¬½ûÓÃÓÒ¼ü!"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
}
 
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
 
if (document.all)
document.onmousedown=disableclick
else if (document.layers)
associateimages()
</script>
 
¹¦ÄÜ£º½ûÖ¹ÓÒ¼ü¡¢½ûÑ¡Ôñ¡¢½ûÕ³Ìù¡¢½ûshift¡¢½ûctrl¡¢½ûalt
 
<script language="JavaScript">
<!--
function key(){ 
if(event.shiftKey){
window.close();}
//½ûÖ¹Shift
if(event.altKey){
window.close();}
//½ûÖ¹Alt
if(event.ctrlKey){
window.close();}
//½ûÖ¹Ctrl
return false;}
document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu(){
event.cancelBubble = true
event.returnValue = false;
return false;}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;}
else
if (event.button == 2 || event.button == 3){
event.cancelBubble = true
event.returnValue = false;
return false;}
}
//½ûÓÒ¼ü
document.oncontextmenu = nocontextmenu;   // for IE5+
document.onmousedown = norightclick;   // for all others
//-->
</script>
 
<body onselectstart="return false"; onpaste="return false";>
 
ÈçºÎÓÃÓÃjavascript ½ûÖ¹ÓÒ¼ü,½ûÖ¹¸´ÖÆ,½ûÖ¹Õ³Ìù,×öվʱ³£»áÓõ½ÕâЩ´úÂ룬ËùÒÔÊÕ²ØÁËһϣ¡
 
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼üÌØЧ
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
 
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ javascript¼¼ÇÉ
 
3. onpaste="return false" ²»×¼Õ³Ìù¼¼ÇÉ
 
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖƵÄjavascirptÌØЧ
http://www.aseoe.com/ true ½ûÖ¹ÓÒ¼ü´úÂë¶øÇÒ½ûÖ¹²é¿´-Ô´Îļþ http://www.aseoe.com/show-26-202-1.html report <£¿php echo strlen($content) / 2; ?> ½ûÖ¹Êó±êÓÒ¼ü ½ûÖ¹²é¿´Ô´Îļþ ½ûÖ¹ÓÒ¼ü¸´ÖÆ ´úÂë´óÈ«1 oncontextmenu="window event returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü£¬ÆäʵÊǽûÖ¹¿ì½Ý²Ëµ¥£¬ÒòΪ²»¹âÓÒ¼ü¿ÉÒÔµ¯³öÕâ¸ö²Ëµ¥£¬¼üÅÌÉÏ¿Õ¸ñ¼üÓұߵÄwind
TAG:½ûÖ¹ Ô´Îļþ ´úÂë
±¾Õ¾»¶Ó­ÈκÎÐÎʽµÄתÔØ£¬µ«ÇëÎñ±Ø×¢Ã÷³ö´¦£¬×ðÖØËûÈËÀͶ¯³É¹û
תÔØÇë×¢Ã÷£º ÎÄÕÂתÔØ×Ô£º°®Ë¼×ÊÔ´Íø http://www.aseoe.com/show-26-202-1.html

[Ç°¶Ë²å¼þÍƼö] Plugin

1 2 3 4
  • jQueryʵÏÖÖð×ÖÖð¾äÏÔʾ²å¼þl-by-l.min.js
  • jQuery´ø·½Ïò¸ÐÖªµÄÊó±ê»¬¹ýͼƬ±ß¿òÌØЧ²å¼þ
  • jQuery HotKeys¼àÌý¼üÅÌ°´ÏÂʼþkeydown²å¼þ
  • ÏìӦʽÎÞÏÞÂÖ²¥jQueryÐýתľÂí²å¼þ
ÏìӦʽÎÞÏÞÂÖ²¥jQueryÐýתľÂí²å¼þ
webÇ°¶Ë¿ª·¢
°®Ë¼×ÊÔ´Íø Copyright 2012-2014 Www.Aseoe.Com All rights reserved.(½úICP±¸13001436ºÅ-1)