第一种:免右键
- <script>
- function click(e) {
- if (document.all) {
- if (event.button==2||event.button==3) {
- oncontextmenu='return false';
- }
- }
- if (document.layers) {
- if (e.which == 3) {
- oncontextmenu='return false';
- }
- }
- }
- if (document.layers) {
- document.captureEvents(Event.MOUSEDOWN);
- }
- document.onmousedown=click;
- document.oncontextmenu = new Function("return false;")
- </script>
复制代码
第二种:禁止网页另存为
- <noscript>
- <iframe src="*.htm"></iframe>
- </noscript>
复制代码 方法如第一种
|
|