日期:2014-05-17  浏览次数:20644 次

怎样使网页只显示标题栏,访问者不能修改?
怎样使网页只显示标题栏,访问者不能修改?

------解决方案--------------------
这个问题只能通过打开新窗口去解决,直接载入页面就出现这种效果似乎无法实现,将以下代码保存为一个.htm文件看看.

<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 只显示标题栏 </title>
<script language= "JavaScript " type= "text/JavaScript ">
function ubbfacem(obj)
{
var str;
obj=eval(obj);
var val= showModalDialog( "http://www.cguwan.com ", " ", "dialogWidth:800px;dialogHeight:600px;status:no;help:no ");
if(!val)return;
val = "[em]e "+val+ "[/em] ";
obj.value += val;
obj.focus();
}
</script>
<style type= "text/css ">
<!--
.hand {
cursor: hand;
}
-->
</style>
</head>

<body>
<form name= "form1 " method= "post " action= " ">
<input type= "button " name= "Submit " value= "点击此处打开对话框 " onClick= "ubbfacem(form1) ">
</form>
<form name= "form2 " method= "post " action= " ">
<font color= "#FF0000 " class= "hand " onClick= "ubbfacem(form2) "> 点击此处打开对话框 </font>
</form>
</body>
</html>
------解决方案--------------------
showModalDialog虽好,但是打开之后别的网页你就看不了了;
window.open虽好,但是用了 世界之窗 之类你想要的只显示标题栏就实现不了了,,,,
不知道你说的方问者不能修改是什么意思。