男方在婚前买的房子:禁止别人在我的网页上面点击右键的代码是什么啊?请指教

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 03:47:27
我想知道具体是什么代码呢?

<SCRIPT LANGUAGE=javascript> function click() { alert('禁止你的左键复制!') } function click1() { if (event.button==2) {alert('禁止右键点击~!') }} function CtrlKeyDown(){ if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }} document.onkeydown=CtrlKeyDown; document.onselectstart=click; document.onmousedown=click1; </SCRIPT> 禁止复制代码(二) <script language="javascript" type="text/javascript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> </head> <body leftmargin=0 topmargin=0 onmousemove='HideMenu()' oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()"> <noscript><iframe src=*></iframe></noscript>