这样使浏览器的 最大化 最小化 关闭按扭 不可用 自己做一个无边框的窗口就可以了!!具体的代码请参考www.21cn.com 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 无边:(摘)minimizebar="images/minimize.gif"; minimizebar2="images/minimize2.gif";closebar="images/close.gif"; closebar2="images/close2.gif"; icon="images/icon.gif"; function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr) { var contents="<html>"+ "<head>"+ "<title>"+titleWord+"</title>"+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">"+ "<link rel='stylesheet' href='inquirybase.css'>"+ "<object id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+ "</head>"+ "<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false' onkeydown=' if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload=' document.all.bottomtxt.style.top=(document.body.clientHeight-20).toString()+px;'>"+ " <table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor="+titleBg+" id=mainTab>"+ " <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+ " <td width=18 align=center><img height=12 width=12 border=0 src="+icon+"></td>"+ " <td width="+w+"><span id=mytitle style=font-size:12px;color:"+titleColor+";font-family:宋体;position:relative;top:1px;>"+titleWord+"</span></td>"+ " <td width=14><img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onmousedown=hhctrl.Click(); onmouseover=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></td>"+ " <td width=13><img border=0 width=12 height=12 alt=关闭 src="+closebar+" onmousedown=self.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></td>"+ " </tr>"+ " <tr height=*>"+ " <td colspan=4>"+ " <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+ " </td>"+ " </tr>"+ " </table>"+ " <div id=bottomtxt style='position:absolute;left:0;top:0px;width:97.3%;height:20;background-color:#0099FF;border:0px' align='left'><table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor=#6a7f9a><tr><td id = mystatus></td></tr></table></div>"+ "</body>"+ "</html>"; pop=window.open("","_blank","fullscreen=yes"); pop.resizeTo(w,h); pop.moveTo((screen.width-w)/2,(screen.height-h)/2); pop.document.writeln(contents); 就是打开一个无边窗口的函数呀,如上的定义存为win.js你用如下的调用就可呀<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>1111</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="inquirybase.css"> <style type="text/css"> </style> </head> <script langauage="jscript" src="win.js"> </script> <body onkeydown='if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload="javascript: noBorderWin('你的网页名字.htm',635,420,'#000000','#333333','#CCCCCC','标题','yes'); window.opener=null; window.close(); "> </body></html> Jquery 如何根据相同的元素进行排序 页面显示乱码问题 JS中的一个小问题 如何用用正则替换掉无用的html标签及某些标签内的无用属性 绝对请大虾进来看看--为什么我的XP无法弹出广告窗口? 如何用javascript逐行读取TextArea的内容 ??? 在线等待 javaScript中如何实现像vbscript中trim()函数。 急急急!如何实现网页的打印预览???? 50分,js中将字符串转换成变量名的函数据是什么?今天回了有效。 关于网页中的iframe问题 出现错误"window.document"不是对象 怎样制作才能在弹出的小窗口网页上出现滚动条?100!
minimizebar="images/minimize.gif";
minimizebar2="images/minimize2.gif";
closebar="images/close.gif";
closebar2="images/close2.gif";
icon="images/icon.gif";
function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr)
{
var contents="<html>"+ "<head>"+
"<title>"+titleWord+"</title>"+
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">"+
"<link rel='stylesheet' href='inquirybase.css'>"+
"<object id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+
"</head>"+
"<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false' onkeydown=' if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload=' document.all.bottomtxt.style.top=(document.body.clientHeight-20).toString()+px;'>"+
" <table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor="+titleBg+" id=mainTab>"+
" <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
" <td width=18 align=center><img height=12 width=12 border=0 src="+icon+"></td>"+
" <td width="+w+"><span id=mytitle style=font-size:12px;color:"+titleColor+";font-family:宋体;position:relative;top:1px;>"+titleWord+"</span></td>"+
" <td width=14><img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onmousedown=hhctrl.Click(); onmouseover=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></td>"+
" <td width=13><img border=0 width=12 height=12 alt=关闭 src="+closebar+" onmousedown=self.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></td>"+
" </tr>"+
" <tr height=*>"+
" <td colspan=4>"+
" <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+
" </td>"+
" </tr>"+
" </table>"+
" <div id=bottomtxt style='position:absolute;left:0;top:0px;width:97.3%;height:20;background-color:#0099FF;border:0px' align='left'><table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor=#6a7f9a><tr><td id = mystatus></td></tr></table></div>"+ "</body>"+
"</html>"; pop=window.open("","_blank","fullscreen=yes");
pop.resizeTo(w,h);
pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
pop.document.writeln(contents);
你用如下的调用就可呀
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>1111</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inquirybase.css">
<style type="text/css">
</style>
</head>
<script langauage="jscript" src="win.js">
</script>
<body onkeydown='if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload="javascript:
noBorderWin('你的网页名字.htm',635,420,'#000000','#333333','#CCCCCC','标题','yes');
window.opener=null;
window.close(); ">
</body>
</html>