最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
FLASH中检测与右键屏蔽实例
时间:2022-06-28 22:17:12 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 |
|
var so = new SWFObject("FL.swf", "flash", "800", "600", "9", "#CCCCCC"); so.addParam("wmode", "opaque"); so.write("flashcontent"); function callFlash(){ //alert("中键"); document.getElementById("flash").onClick(); } if(window.addEventListener){ window.addEventListener("mousedown",function(e){ if(e.button==1)callFlash(); //屏蔽右键 if(e.button==2){ if (e.stopPropagation) e.stopPropagation(); if (e.preventDefault) e.preventDefault(); if (e.preventCapture) e.preventCapture(); if (e.preventBubble) e.preventBubble(); } },true); }else{ document.getElementById("flashcontent").onmousedown=function(){ if(event.button==4)callFlash(); //屏蔽右键 if(event.button==2){ document.oncontextmenu=function(){return false;}; this.setCapture(); this.onmouseup=function(){ this.releaseCapture(); } } } } |
|
https://www.111cn.net/down/FLASH中键检测与右键屏蔽.rar
相关文章
- 逃离鸭科夫零号区图纸在哪 零号区图纸位置详情 12-15
- 巨量百应官网登录入口-官方网址一键直达 12-15
- qq邮箱官网登录入口-qq邮箱官网多设备同步登录入口 12-15
- 光与影33号远征队应急坚壳:应急坚壳符文效果及获取方式详解 12-15
- 光与影33号远征队着火暴击:着火暴击符文效果与获取方式详解 12-15
- 哔哩哔哩B站官网直达-bilibili主页一键访问 12-15