可以通过弹出窗口
来实现1111.html
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
//写成一行
}
//-->
</script>
</head>
<body onload="openwin()">
dslfkjlakfasfsa
</body>
在谈出的窗口文件里,这样做就可以了
一下是:page.html
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
//写成一行
}
//-->
</script>
</head>
<body>
dslfkjlakfasfsa
<SCRIPT language=JavaScript1.2>
if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3||event.button==1) alert('你好')")
</SCRIPT>
</body>,这样在page.html里就不能使用鼠标选中了
这样就可以实现你的功能了
来实现1111.html
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
//写成一行
}
//-->
</script>
</head>
<body onload="openwin()">
dslfkjlakfasfsa
</body>
在谈出的窗口文件里,这样做就可以了
一下是:page.html
<html>
<head>
<script LANGUAGE="JavaScript">
<!--
function openwin() {
window.open ("page.html", "newwindow", "height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
//写成一行
}
//-->
</script>
</head>
<body>
dslfkjlakfasfsa
<SCRIPT language=JavaScript1.2>
if (document.all)
document.body.onmousedown=new Function("if (event.button==2||event.button==3||event.button==1) alert('你好')")
</SCRIPT>
</body>,这样在page.html里就不能使用鼠标选中了
这样就可以实现你的功能了
解决方案 »
- cookies显示问题
- php如何往sql server字段中保存各种文字字符?
- ajax+php的问题
- ~~~~~~~~~~PHP用户注册的后台应该有哪些内容
- 要给一批页面的<a>标签加title属性.php使用什么函数可以?
- [求助]Linux下firefox无法调用php?
- 访问量大的程序是不是不用类呀,感觉直接用函数比类快,节省服务器资源,比如数据库操作之类。。 。
- 谁知道英雄榜访问统计数据结构是怎么样的呢.
- 菜鸟问题:EOT是什么东东?EOT;和<<<EOT是什么意思啊?
- 谁知道哪里可以下载到邮件管理系统的源代码,给个网址好吗?谢谢!
- 如何将键盘、鼠标的复制功能封掉!!请各位高人指点一二!!!
- 新手入门! 我该什么样的开发环境?
<script>
opn=window.open("b.html",'',"scrollbars=1,toolbar=1,location=1,resizable=1,status=1,width="+screen.width+",height="+(screen.height-130));
opn.moveTo(-5,-5);
opener=null;
window.close();
</script>
b.html:
<body oncontextmenu="return false;" onkeydown="if(event.ctrlKey) event.returnValue=false;">
lklkfdja;kfdj ydowydowydow
</body>但又何必這樣呢?
我用file函數照樣可以將頁面讀出來,或者其他離線工具。
沒有意義
<body oncontextmenu="return false;" onselectstart="return false;">
测试
</body>