自己做一个无边框的窗口就可以了!!具体的代码请参考www.21cn.com
解决方案 »
- 显示系统时间(保存为HTML文件就能看到效果)
- jquery根据radio类型元素的name和value进行选择,value是变量该怎么办?
- 谁能帮我解释一下这段代码
- html元素的名称问题,急!!!
- CGI程序中间要求弹出的网页为什么要到整个程序执行完之后再弹出?
- Javascript 中怎么获取上一层的url
- 子模态窗口刷新父模态窗口的问题
- 100分!在线等~!马上解决马上结帖!怎么用Javascript实现:把一个位于服务器上的图片(*.GIF)输出到客户端?
- 如何在状态栏和地址样只显示根目录地址,而不将所有详细地址及参数都显示出来
- 怎么从弹出层获取值?
- 出现错误"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>