如何让IE6.0右上角的“闭关”按钮失效?

dgseamaple 2004-08-05 05:38:43
如题!
...全文
984 22 打赏 收藏 转发到动态 举报
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
chlchl1980 2005-01-06
  • 打赏
  • 举报
回复
deng
superxiumu 2004-11-28
  • 打赏
  • 举报
回复
mark
sharing 2004-08-13
  • 打赏
  • 举报
回复
up
BillSmiph 2004-08-13
  • 打赏
  • 举报
回复
<INPUT onclick="window.open('aa.asp','','width=400,height=300,fullscreen=3')" type=button value="测试">
nc2015 2004-08-13
  • 打赏
  • 举报
回复
省点把,alt + f4 。
dgseamaple 2004-08-06
  • 打赏
  • 举报
回复
楼上的兄台如何调用?
gjd111686 2004-08-06
  • 打赏
  • 举报
回复
<script src="alai_win.js"></script>
function MsgBox(msg)
{
winMsg=new alai_win(msg,"Message Box",350,60)
winMsg.addButton("确定","hide")
winMsg.show()
}
gjd111686 2004-08-06
  • 打赏
  • 举报
回复
/*******************************************************************************
阿赖浮动层窗口控件程序cool风格版 由赖国欣设计于2003年5月,保留所有权利!
*********************************************************************************/
var MAX_Z_INDEX=30

function alai_win(content,title,width,height,top,left)
{
if(typeof(content)=="string")
{
var obj=document.createElement("div")
obj.innerHTML=content
document.body.insertAdjacentElement("beforeEnd",obj)
content=obj
}
else if(typeof(content)!="object"){return}

var buttons=[]
var winPanel=document.createElement("div")
var winBody=document.createElement("div")
var winBar=document.createElement("div")
var winBottom=document.createElement("div")
var winTitle=document.createElement("div")
var run=function(cmd,a0,a1,a2)
{
if(typeof(cmd)=="string")
{ try{return eval(cmd);}
catch(E){alert("run script string error:\n"+cmd);}
}
else if(typeof(cmd)=="function"){return cmd(a0,a1,a2);}
}

content.applyElement(winPanel,"outside")
winPanel.applyElement(winBody,"outside")
winBody.insertAdjacentElement("afterBegin",winBar)
winBody.insertAdjacentElement("beforeEnd",winBottom)

var IMG_PATH="images/"
var script=document.getElementsByTagName("SCRIPT");
for(var i=0;i<script.length;i++)
{
var s=script[i].src.toLowerCase()
if(s.indexOf("alai_win.js")!=-1){IMG_PATH=s.replace("alai_win.js","")+"images/"}
}


var s=" <table style=\"width: 100%; border-style: none; border-width:0\" height=\"38\" background=\"" +IMG_PATH+ "win_foot.gif\" border=0 cellpadding=\"0\" cellspacing=\"0\"><tr> "
s+=" <td height=\"34\" valign=\"top\" background=\"" +IMG_PATH+ "win_mbg.gif\"><img src=\"" +IMG_PATH+ "win_left.gif\"></td> "
s+=" <td style=\"width: 100%\" background=\"" +IMG_PATH+ "win_mbg.gif\" valign=\"top\" height=\"15\" align=\"center\"></td> "
s+=" <td height=\"34\" valign=\"top\" align=\"right\" background=\"" +IMG_PATH+ "win_mbg.gif\"><img src=\"" +IMG_PATH+ "win_right.gif\"> </td> "
s+=" </tr></table> "
winBar.innerHTML=s
var oTmp=document.all[winBar.sourceIndex+1].cells[1]
oTmp.applyElement(winTitle,"inside")

winBody.style.cssText="position:absolute;visibility:hidden;background-color:#eeeeee;color:black;text-align:center;font-size:10pt;border:2 outset;"
winBar.style.cssText="width:100%;cursor:default;"
winPanel.style.cssText="width:100%;text-align:left;margin:2 4 1 4;overflow:auto;text-align:center;"
winTitle.style.cssText="font-weight:bold;margin-top:4;font-size:11pt;color:darkblue;font-family:arial;"
winBottom.style.cssText="width:100%;height:35;text-algin:center;background-image:url('" +IMG_PATH+ "win_foot.gif')"

winBody.onmousedown=function(){if(winBody.style.zIndex<MAX_Z_INDEX)winBody.style.zIndex=++MAX_Z_INDEX}
with(winBar)
{
var x1,y1,l1,t1,mflag=false
onmousedown = function()
{ if(event.button!=1)return;
this.setCapture();this.style.cursor='move';mflag=true;
x1=event.clientX;y1=event.clientY;l1=winBody.style.pixelLeft;t1=winBody.style.pixelTop;
}
onmousemove = function()
{ if(mflag)
{ winBody.style.pixelLeft=l1+event.clientX-x1;
winBody.style.pixelTop=t1+event.clientY-y1;
}
}
onmouseup =function(){this.releaseCapture();mflag=false;this.style.cursor='default';}
onSelectStart=function(){return false;}
}

var win=this
this.copywrite="Copywrite by Alai(赖国欣) (c)2003,All right reserved!"
this.buttons=buttons
this.body=winBody
this.panel=winPanel
this.bar=winBar
this.bottom=winBottom
this.content=content
this.setTitle=function(val){if(val!=null)winTitle.innerHTML=val;}
this.setX=function(val){var x=document.body.offsetWidth-winBody.offsetWidth;winBody.style.pixelLeft=val!=null?val:(x>0?parseInt(x/2):0);}
this.setY=function(val){var t=document.body.offsetHeight-winBody.offsetHeight;winBody.style.pixelTop=val!=null?val:(t>0?parseInt(t/2):0);}
this.setW=function(val){winBody.style.pixelWidth=val==null?500:val;}
this.setH=function(val)
{ var h=val==null?300:val;winBody.style.pixelHeight=h;
h-=winBar.offsetHeight+winBottom.offsetHeight;winPanel.style.pixelHeight=h>0?h:25;
}
this.hide=function(){winBody.style.display="none";}
this.show=function(){winBody.style.display="block";winBody.style.zIndex=++MAX_Z_INDEX;}
this.addButton=function(text,exeType,exeArg,width,target)
{
var btn=document.createElement("span")
winBottom.insertAdjacentElement("beforeEnd",btn)
btn.innerHTML=text
btn.style.cssText="margin-top:5;margin-left:6;filter:alpha(opacity=80);padding-top:3;text-align:center;font-size:11pt;height:25;cursor:default;background-image:url('" +IMG_PATH+ "btn_bg.gif');"
btn.style.pixelWidth=width==null?80:width;
btn.onmouseover=function(){this.style.color="blue";this.style.borderTop=this.style.borderBottom="1 solid blue";this.style.filter="glow(color=red,strength=3)";}
btn.onmouseout=function(){this.style.color="black";this.style.border="";this.style.filter="alpha(opacity=80)";}
btn.execute=new Function()
exeType=exeType==null?"":exeType
switch(exeType.toLowerCase())
{
case "hide":
btn.execute=win.hide;break;
case "js":
if(typeof(exeArg)!="string")break;
btn.execute=function(){eval(exeArg);}
break;
case "url":
if(typeof(exeArg)!="string")break;
btn.execute=function(){self.location=exeArg;};break;
case "open":
if(typeof(exeArg)!="string")break;
btn.execute=function(){open(exeArg,"_blank");};break;
}
buttons[buttons.length]=btn
btn.onclick=function(){run(btn.execute)}
return btn
}

this.setTitle(title)
this.setW(width)
this.setH(height)
this.setX(left)
this.setY(top)
winBody.style.visibility="visible"
winBody.style.display="none"
}

woyingjie 2004-08-06
  • 打赏
  • 举报
回复
k = window.event.keyCode;
woyingjie 2004-08-06
  • 打赏
  • 举报
回复
屏蔽ctrl+w

if (window.event.ctrlKey && k == 87) //屏蔽 Ctrl+w
window.event.returnValue= false;
meizz 2004-08-06
  • 打赏
  • 举报
回复
除了 woyingjie(killerJ)(假期,找兼职中)(http://www.killerj.tk) 给出的三种方法外, 再给你一个解决的思路:

<body onload="window.moveTo(0,-24)">

这样你就点击不到那个关闭按钮了 :)
wjhcjg 2004-08-06
  • 打赏
  • 举报
回复
up
flying310 2004-08-06
  • 打赏
  • 举报
回复
open一个窗口是最有效的。
hxy2003 2004-08-05
  • 打赏
  • 举报
回复
jj
xieyj 2004-08-05
  • 打赏
  • 举报
回复
不想要全屏,只有使用页面内的 div 实现,不过很麻烦
xxrl 2004-08-05
  • 打赏
  • 举报
回复
:)
woyingjie 2004-08-05
  • 打赏
  • 举报
回复
window.open('aa.asp','','width=800,height=600,fullscreen=3')

fullscreen=3不是全屏,只是标题栏上没有任何按扭
dgseamaple 2004-08-05
  • 打赏
  • 举报
回复
我不想要全屏
我用window.open('aa.asp','','width=800,height=600')
aa.asp不要全屏,但是我希望“关闭”按钮像“最大化”按钮那样失效。
skyboy0720 2004-08-05
  • 打赏
  • 举报
回复
已经有了嘛!
超级大笨狼 2004-08-05
  • 打赏
  • 举报
回复
window.open
加载更多回复(2)

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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