这样使浏览器的 最大化 最小化 关闭按扭 不可用

ngqzmjmj 2003-02-28 10:41:15
如题
...全文
108 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
叶子哟 2003-02-28
  • 打赏
  • 举报
回复
实际你可以搜下gg,无边窗口,多了去了
叶子哟 2003-02-28
  • 打赏
  • 举报
回复
就是打开一个无边窗口的函数呀,如上的定义存为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>
ngqzmjmj 2003-02-28
  • 打赏
  • 举报
回复
21CN里没有啊
楼上的我看不懂
能不能说的详细点
叶子哟 2003-02-28
  • 打赏
  • 举报
回复
无边:(摘)
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);
laofei2000 2003-02-28
  • 打赏
  • 举报
回复
自己做一个无边框的窗口就可以了!!具体的代码请参考www.21cn.com

87,994

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧